Back to Devexpress

PrintingSystemBase.CreateDocumentException Event

corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-f856f62a.md

latest2.2 KB
Original Source

PrintingSystemBase.CreateDocumentException Event

Occurs when an exception is raised during document creation.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public event ExceptionEventHandler CreateDocumentException
vb
Public Event CreateDocumentException As ExceptionEventHandler

Event Data

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

PropertyDescription
ExceptionProvides access to the exception.
HandledSpecifies 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.

Implements

CreateDocumentException

See Also

PrintingSystemBase Class

PrintingSystemBase Members

DevExpress.XtraPrinting Namespace