vcl-dxpdfdocument-dot-tdxpdfdocument-933dfe3d.md
Enables you to track the document save progress.
property OnSaveProgress: TdxPDFDocumentSaveProgressEvent read; write;
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.
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;
void __fastcall TMyForm::SaveProgress(TdxPDFDocument *Sender, int APercent)
{
cxProgressBar1->Position = APercent;
}
Refer to the TdxPDFDocumentSaveProgressEvent procedural type description for detailed information on parameters accessible within an OnSaveProgress event handler.
See Also