PrintingSystemBase.PrintProgress Event
Occurs before sending every document page to a printer to indicate the current printing progress.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v19.1.Core.dll
Declaration
Event Data
The PrintProgress event's data class is PrintProgressEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
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. |
Remarks
Note
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PrintProgress event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.