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