Manage the Print Progress
- 2 minutes to read
Handle the following events to track the printing progress and change the printing settings at runtime:
This event fires only for WinForms applications.
This event occurs before printing each page. In this event handler, you can obtain information about the current printing operation and access the current page index along with other page settings.
Handle this event to perform any actions before printing each page. For example, you can bind a progress bar's ProgressBarControl.Position property to the PrintProgressEventArgs.PageIndex property value to manually reflect the current printing progress.
You can also use the PrintProgressEventArgs.PageSettings property to change a printed page's settings (such as the paper source).
This event fires only for WinForms and WPF applications.
This event occurs only once - before sending a document to a printer. In this event handler, you can change various printing settings before sending a document to a printer.
The following tutorials demonstrate how to use this event to complete different tasks:
Use the XtraReport.ShowPrintStatusDialog property to specify whether to display the Printing dialog window during the printing process: