Jump to content

Export to Excel without Excel


Recommended Posts

It seems I was to optimistic about "working" export to Excel.

There is a problem with exporting long integers so , if you have id-s in the 100000

range or more that you want exported , first cast them as strings.


As for a demo, it couldn't be simpler :


uses uNativeXLSExport;



procedure TUniMainModule.ExportExcel(ADataSet:TDataSet);
  fname := UniServerModule.LocalCachePath + 'E' + FormatDateTime('hhmmss', Now()) + '.xls'; // Create a unique name for report.
  DataSetToXLS(ADataSet, fname);

Link to comment
Share on other sites

  • 6 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.

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...