Contents
- Index
- Previous
- Next
OnExportProgress event
Applies to
TProfGrid component
Declaration
property OnExportProgress: TProfGridExportImportProgressEvent;
Description
Use the OnExportProgress event to visualize the process of export to Microsoft Word and Microsoft Excel.
The FinishedSteps parameter indicates the currently finished step of the export process, which will take TotalSteps steps total.
An event handler may assign True to the Stop parameter to terminate the current export process.
Example
The following event handler uses a TGauge control to visualize the export process.
procedure TForm1.ProfGrid1ExportProgress(Sender: TProfGrid; FinishedSteps,
TotalSteps: Integer; var Stop: Boolean);
begin
Gauge1.MaxValue := TotalSteps;
Gauge1.Progress := FinishedSteps;
end;