The event is raised before a document page is sent to a printer.
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.|
Only WinForms Reporting applications can raise the PrintProgress event.
The PrintProgress event allows you to indicate the current print progress and execute custom code before a page is sent to the printer.
The PrintProgress event allows you to use the PrintProgressEventArgs.PageSettings property to specify page settings.
Print operations run in a non-UI thread. Therefore, you should make thread-safe calls to your controls if you handle the PrintProgress event. For more information on standard thread-safe call techniques, review the following help topics:
- How to: Make Thread-Safe Calls to Windows Forms Controls
- DevExpress WinForms Best Practices - Update and Load Data from non UI Threads, and Deal with Frequently Updated Data