ReportDesigner.OpenDocument(String, Action<ReportDesignerDocument>) Method
Loads a report from the specified REPX file and opens it in the End-User Report Designer.
Namespace: DevExpress.Xpf.Reports.UserDesigner
Assembly: DevExpress.Xpf.ReportDesigner.v25.1.dll
NuGet Package: DevExpress.Wpf.Reporting
Declaration
public ReportDesignerDocument OpenDocument(
string reportFilePath,
Action<ReportDesignerDocument> beforeLoad = null
)
Parameters
| Name | Type | Description |
|---|---|---|
| reportFilePath | String | A string that specifies the full path to the report file (.REPX) or an unique report ID (if you use custom report storage). |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| beforeLoad | Action<ReportDesignerDocument> | null | An action that will be invoked before the report is loaded. |
Returns
| Type | Description |
|---|---|
| ReportDesignerDocument | A designer document that displays the report from the specified file. |
Remarks
The OpenDocument method creates a new instance of the ReportDesignerDocument class and loads a report to it.
See Also