AdvStringGrid Export and Import filters
TAdvGridExcelExport.Export Method (TStream, TFileFormats, string)

Exports the attached grid or workbook to Excel.

procedure Export(const aStream: TStream; const SaveFormat: TFileFormats; const SheetName: string = ''); overload;
const aStream: TStream 
Stream where the selected file will be saved.  
const SaveFormat: TFileFormats 
Format in which to save the file. As we are saving to a stream and there is no filename we can't figure out whether to save as xls or xlsx, and you need to specify it here.  
const SheetName: string = '' 
Defines the sheet name for the exported file. If empty, a normal "Sheet1" will be used.  

For more flexibility in how to generate the file use Export(TExcelFile, TInsertInSheet) instead.

Copyright (c) 2002-2013 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!