Jump to content
uniGUI Discussion Forums
adragan

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);
  var
           fname:string;
  begin
  fname := UniServerModule.LocalCachePath + 'E' + FormatDateTime('hhmmss', Now()) + '.xls'; // Create a unique name for report.
  DataSetToXLS(ADataSet, fname);
  UniSession.SendFile(fname);
  end;
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×