Occurs when an exception is raised during document creation.
public event ExceptionEventHandler CreateDocumentException
Public Event CreateDocumentException As ExceptionEventHandler
The CreateDocumentException event's data class is ExceptionEventArgs. The following properties provide information specific to this event:
|Exception||Provides access to the exception.|
|Handled||Specifies whether or not the corresponding event was handled.|
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.