CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

.ExportToExcel creates invalid .XLS file

by ScottWGast » 30 Oct 2017 19:29

DXE2/Updt4 / IW 14.0.63 / CG 3.0.0.37

The resulting .xls file is deemed invalid by Excel 2013. I saw some recommended patches in prior posts, but they are a couple of years old.

Thanks,
Scott

Code: Select all
procedure TframeExportData.ClickSaveAsExcel(Sender: TObject; AParams: TStringList);
begin
  Self.gridData.JQGridOptions.ExportToExcel('ExportData.xls', True);
end;


ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Alexander Bulei » 31 Oct 2017 18:31

Hi ScottWGast,

We use the NativeExcel whcih is free and open-source, and definitely old...and supports only up to 2013 (not include) .

if you want export for newer versions of excell, you must find and/or implement it by yourself.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 31 Oct 2017 19:20

This has been an issue for a long time now.

SUGGESTION:
Can the Excel export be replaced by CSV or CSV added as an export option?
zsleo
 
Posts: 777
Joined: 03 Feb 2013 03:33

by ScottWGast » 31 Oct 2017 20:59

OK, Alexandre... I appreciate the info.

zsleo, I have an underlying TADODataSet so I can save the data to xml for the time being as I continue to look for Excel alternatives.
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02



Return to JQGrid

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.