Back to Devexpress

ReportDesignerDocument.LoadFailed Event

wpf-devexpress-dot-xpf-dot-reports-dot-userdesigner-dot-reportdesignerdocument-8c85eb47.md

latest3.7 KB
Original Source

ReportDesignerDocument.LoadFailed Event

Occurs when the attempt to load a report to the designer document failed.

Namespace : DevExpress.Xpf.Reports.UserDesigner

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

NuGet Package : DevExpress.Wpf.Reporting

Declaration

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

Event Data

The LoadFailed 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 LoadFailed event to respond to the failure of loading a report to the current designer document.

Use the Exception property of the event parameter 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

ReportDesignerDocument Class

ReportDesignerDocument Members

DevExpress.Xpf.Reports.UserDesigner Namespace