Skip to main content

TdxPDFDocument.OnSaveProgress Event

Enables you to track the document save progress.

Declaration

property OnSaveProgress: TdxPDFDocumentSaveProgressEvent read; write;

Remarks

Handle the OnSaveProgress event to display a progress bar in your application (the TcxProgressBar control, for instance) during a document save operation. This event occurs multiple times per single SaveToFile or SaveToStream procedure call, once certain PDF objects in the document are successfully saved. The number of event occurrences depends on the size and complexity of the saved document.

Example

You can use the APercent parameter to obtain the percentage value that indicates the progress of a document save operation:

TMyForm.SaveProgress(Sender: TdxPDFDocument; APercent: Integer);
begin
  cxProgressBar1.Position := APercent;
end;

Refer to the TdxPDFDocumentSaveProgressEvent procedural type description for detailed information on parameters accessible within an OnSaveProgress event handler.

See Also