The event OnProgress: TExportProgressNotification is called by TOExport so that you can show the user a progress during the document creation.
procedure(const Sender: TOExport; const aType: TExportProgressNotificationType; const aPos, aCount: Integer) of Object;
Value | Description |
---|---|
epnStart | Export started. aPos and aCount are unset. |
epnSharedString | Shared strings creation (only XLSX document). aPos is the row number, aCount is the row count. The event is called after every 1000 rows. |
epnWorksheet | Worksheet export. aPos is the worksheet index, aCount the worksheet count. |
epnRow | Row export. aPos is the row number, aCount is the row count. The event is called after every 1000 rows. |
epnSave | Before saving the zip file. aPos and aCount are unset. |
epnFinish | Export finished. aPos and aCount are unset. |
Please see Custom progress dialogs for an example how to use the OnProgress event.