PrintingSystemBase.PrintProgress Event

The event is raised before a document page is sent to a printer.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v21.1.Core.dll

Declaration

public event PrintProgressEventHandler PrintProgress

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

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.

To indicate the current print progress, add the DevExpress.XtraEditors.ProgressBarControl to the application and set its Position property to the PrintProgressEventArgs.PageIndex value.

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:

See Also