ReportDesigner.OpenDocument(XtraReport, Action<ReportDesignerDocument>) Method
Loads the specified report instance to the End-User Report Designer.
Namespace: DevExpress.Xpf.Reports.UserDesigner
Assembly: DevExpress.Xpf.ReportDesigner.v24.1.dll
NuGet Package: DevExpress.Wpf.Reporting
Declaration
public ReportDesignerDocument OpenDocument(
XtraReport originalReport,
Action<ReportDesignerDocument> beforeLoad = null
)
Parameters
Name | Type | Description |
---|---|---|
originalReport | XtraReport | An XtraReport object, or one of its descendants, representing the report to be opened. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
beforeLoad | Action<ReportDesignerDocument> | null | An action that will be invoked before the specified report is loaded. |
Returns
Type | Description |
---|---|
ReportDesignerDocument | A designer document that displays the specified report. |
Remarks
The OpenDocument method creates a new instance of the ReportDesignerDocument class and loads the specified report to it.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the OpenDocument(XtraReport, Action<ReportDesignerDocument>) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.