Back to Devexpress

ReportDesignerDocument.SubreportLoadFailed Event

wpf-devexpress-dot-xpf-dot-reports-dot-userdesigner-dot-reportdesignerdocument-7689f5d5.md

latest3.6 KB
Original Source

ReportDesignerDocument.SubreportLoadFailed Event

Occurs when the attempt to load a subreport to the current 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<ReportDesignerDocumentSubreportLoadFailedEventArgs> SubreportLoadFailed
vb
Public Event SubreportLoadFailed As EventHandler(Of ReportDesignerDocumentSubreportLoadFailedEventArgs)

Event Data

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

PropertyDescription
DocumentGets the report designer document currently being processed.
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.
ReportSourceUrlSpecifies a URL of a report definition file (*.REPX) loaded as a subreport. Inherited from SubreportLoadFailedEventArgs.
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.

Remarks

Handle the SubreportLoadFailed event to respond to a failure to load a subreport to the designer document.

The current designer document is specified by the Document property of the event parameter. The ReportSourceUrl property defines the URL of a report definition file (*.REPX) loaded as a subreport. Use the Exception property to get the exception that caused the failure. 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