'Declaration
Public Event PrintProgress As EventHandler(Of PrintProgressEventArgs)
'Usage
Dim instance As PDFDocument Dim handler As EventHandler(Of PrintProgressEventArgs) AddHandler instance.PrintProgress, handler
public event EventHandler<PrintProgressEventArgs> PrintProgress
public: __event EventHandler<PrintProgressEventArgs*>* PrintProgress
public: event EventHandler<PrintProgressEventArgs^>^ PrintProgress
Event Data
The event handler receives an argument of type PrintProgressEventArgs containing data related to this event. The following PrintProgressEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the page printing should be cancelled or not. |
CurrentPage | Gets the page number within the print range being printed. |
PageNumber | Gets the page number within the document being printed. |
PrintPageCount | Gets the total number of pages being printed. |
Remarks
You can use this event to dispaly a progress bar that indicates the progress of the print operation.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also