Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFDocument.OnSaveProgress Event

Enables you to track the document save progress.

#Declaration

Delphi
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.

#Code Example: Track Document Export Progress

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