Skip to main content

PrintingSystemBase.CreateDocumentException Event

Occurs when an exception is raised during document creation.

Namespace: DevExpress.XtraPrinting

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

NuGet Package: DevExpress.Printing.Core

Declaration

public event ExceptionEventHandler CreateDocumentException

Event Data

The CreateDocumentException event's data class is ExceptionEventArgs. The following properties provide information specific to this event:

Property Description
Exception Provides access to the exception.
Handled Specifies whether or not the corresponding event was handled.

Remarks

When a document is being created in the background (by calling the XtraReport.CreateDocument method with the buildForInstantPreview parameter set to true), you can use the CreateDocumentException event to handle custom exceptions that may occur during document creation. When an exception is handled (the ExceptionEventArgs.Handled property is set to true for it), the report creation process stops without displaying any errors in Print Preview.

See Also