emin Posted November 14, 2020 Posted November 14, 2020 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. Quote
Sherzod Posted November 14, 2020 Posted November 14, 2020 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? Quote
emin Posted November 14, 2020 Author Posted November 14, 2020 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; Quote
Dimitris Zouras Posted April 19, 2021 Posted April 19, 2021 Hi, if you uncheck under Grid -> Exporter ->UseColumnRenderer = False will be ok 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.