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 and WPF applications.
Handle the PrintProgress event to perform cetain actions before every page is sent to a printer. For example, if you want to manually reflect the current printing progress, you can bind the progress bar’s ProgressBarControl.Position property to the PrintProgressEventArgs.PageIndex property value. This event also allows you to change some of the printed page’s settings via the PrintProgressEventArgs.PageSettings property (for example, change the paper source).