TExportProgressNotification

Description

The event OnProgress: TExportProgressNotification is called by TOExport so that you can show the user a progress during the document creation.

Definition

procedure(const Sender: TOExport;
  const aType: TExportProgressNotificationType; const aPos, aCount: Integer) of Object;

TExportProgressNotificationType Values

ValueDescription
epnStartExport started. aPos and aCount are unset.
epnSharedStringShared strings creation (only XLSX document). aPos is the row number, aCount is the row count. The event is called after every 1000 rows.
epnWorksheetWorksheet export. aPos is the worksheet index, aCount the worksheet count.
epnRowRow export. aPos is the row number, aCount is the row count. The event is called after every 1000 rows.
epnSaveBefore saving the zip file. aPos and aCount are unset.
epnFinishExport finished. aPos and aCount are unset.

Example

Please see Custom progress dialogs for an example how to use the OnProgress event.

Categories