Back to Devexpress

ReportDesignerBase.SubreportLoadFailed Event

wpf-devexpress-dot-xpf-dot-reports-dot-userdesigner-dot-reportdesignerbase-08c51a77.md

latest3.7 KB
Original Source

ReportDesignerBase.SubreportLoadFailed Event

Occurs when the attempt to load a subreport to the End-User Report Designer 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 Report Designer.

The current designer document is specified by the Document property of the event parameter. The ReportSourceUrl property defines a 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

ReportDesignerBase Class

ReportDesignerBase Members

DevExpress.Xpf.Reports.UserDesigner Namespace