Jump to content

UniGridExcelExporter problem


emin

Recommended Posts

Hi

I extract UniDBGrid to Excel using UniGridExcelExporter. However, instead of the data in excel cells I see below message:

Render Error: Cannot set property 'tdAttr' of null "

The code I use for export:

UniDBGrid1.Exporter.Exporter: = UniGridExcelExporter1;
UniDBGrid1.Exporter.Title: = UniTreeMenu1.Selected.Text;
UniDBGrid1.Exporter.ExportGrid;

I wonder if I have a missing parameter that I haven't specified.

excelgorunumu.PNG

gridgörünümü.PNG

Link to comment
Share on other sites

3 hours ago, emin said:

I extract UniDBGrid to Excel using UniGridExcelExporter. However, instead of the data in excel cells I see below message:

Render Error: Cannot set property 'tdAttr' of null "

Hi,

I couldn't reproduce.

Can you please provide more details? How can we reproduce this issue?

Link to comment
Share on other sites

When I examined the demo, I saw that exported records coming directly from the database. At runtime, no change to dbgrid source
In my application, I change the names and properties of the columns in the same dbgrid according to query at runtime

My code like this:

query.close;

query.sql.text:='select x,y from abc';

query.open;

 

unidbgrid1.columns[0].width:=140;
unidbgrid1.Columns[0].Title.caption:='x';
unidbgrid1.Columns[0].Title.Alignment:=taLeftJustify;
unidbgrid1.Columns[0].Alignment:=taLeftJustify;
unidbgrid1.columns[0].readonly:=true;

unidbgrid1.Columns[1].Title.caption:='y';
unidbgrid1.Columns[1].Title.Alignment:=tacenter;
unidbgrid1.Columns[1].Alignment:=tacenter;
unidbgrid1.columns[1].readonly:=true;
unidbgrid1.Columns13].Width:=140;

 

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...