PrintingSystemBase.CreateDocumentException Event

Occurs when an exception is raised during document creation.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v19.2.Core.dll

Declaration

public event ExceptionEventHandler CreateDocumentException
Public Event CreateDocumentException As ExceptionEventHandler

Event Data

The CreateDocumentException event handler receives an argument of the ExceptionEventArgs type. 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