Back to Devexpress

ReportDesignerBase.DocumentOpenFailed Event

wpf-devexpress-dot-xpf-dot-reports-dot-userdesigner-dot-reportdesignerbase-e59a008f.md

latest4.2 KB
Original Source

ReportDesignerBase.DocumentOpenFailed Event

Occurs every time an attempt to load a report to a designer document fails.

Namespace : DevExpress.Xpf.Reports.UserDesigner

Assembly : DevExpress.Xpf.ReportDesigner.v25.2.dll

NuGet Package : DevExpress.Wpf.Reporting

Declaration

csharp
public event EventHandler<ReportDesignerDocumentLoadFailedEventArgs> DocumentOpenFailed
vb
Public Event DocumentOpenFailed As EventHandler(Of ReportDesignerDocumentLoadFailedEventArgs)

Event Data

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

PropertyDescription
DocumentGets the report document currently being processed. Inherited from ReportDesignerDocumentOperationFailedEventArgs.
ErrorMessageGets or sets an error description displayed within an error message box. Inherited from OperationFailedEventArgs.
ExceptionGets an exception that raised the corresponding event. Inherited from OperationFailedEventArgs.
RethrowGets or sets a value that specifies whether to throw an exception on a failure. Inherited from OperationFailedEventArgs.
ShowErrorMessageGets or sets a value that specifies whether to display an error message box. Inherited from OperationFailedEventArgs.
ShowOpenFileDialogToSelectNewSourceGets or sets a value that specifies whether to invoke the Open File dialog to select another report for loading to the designer document.
SourceGets an object that raised the event.

Remarks

Handle the DocumentOpenFailed event to respond to a failure to load a report to a designer document.

The current designer document is specified by the ReportDesignerDocumentOperationFailedEventArgs.Document property of the event parameter. Use the Exception property to get the exception that caused the failure. Enable the ShowOpenFileDialogToSelectNewSource property to invoke the Open File dialog to select another report for loading to the designer document. The event parameter’s properties also allow you to specify the error description, whether to show the error message, etc.

See Also

DocumentOpened

Loaded

LoadFailed

ReportDesignerBase Class

ReportDesignerBase Members

DevExpress.Xpf.Reports.UserDesigner Namespace