Occurs before sending every document page to a printer to indicate the current printing progress.
public event PrintProgressEventHandler PrintProgress
Public Event PrintProgress As PrintProgressEventHandler
The PrintProgress event's data class is PrintProgressEventArgs. The following properties provide information specific to this event:
|PageIndex||Gets the index of the current page that should be sent to a printer, next.|
|PageSettings||Gets or sets the page settings of the current page that should be sent to a printer, next.|
|PrintAction||Gets a value indicating what type of print operation is occurring.|
The PrintProgress event fires only for Windows Forms applications.
Handle the PrintProgress event to perform any specific actions before every page is sent to a printer. For example, if you want to manually reflect the current printing progress, you may bind the ProgressBarControl.Position property of a progress bar to the PrintProgressEventArgs.PageIndex property value. Also note that this event allows you to change some of the page settings of a printed page via the PrintProgressEventArgs.PageSettings property (e.g. you may change the paper source in this way).
For more information on handling events, see Events and Delegates in MSDN.