Skip to main content

PrintingSystemBase.PrintProgress Event

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v22.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:

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.

See Also