|
FlexCel Studio for VCL/LCL
|
Occurs before the file is saved to disk, once for each of each file format generated.
property OnGetFilename: TOnGetFileNameEvent;
__property TOnGetFileNameEvent OnGetFilename;
You can use this event if saving the report in more than one format. But normally there is no use for this event.
procedure TFTestReport.FlexCelReport1GetFilename(Sender: TObject; const FileFormat: Integer; var Filename: TFileName); begin case TExcelSaveFormatNative(FileFormat) of snXLS: Filename:=Filename+'.xls'; snCSVComma: Filename:=Filename+'.csv'; snCSVSemiColon: Filename:=Filename+'.csv'; snTabDelimited: Filename:=Filename+'.txt'; end; //case end;
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|