Skip to main content

ReportDesigner.OpenDocument(Action<ReportDesignerDocument>) Method

Invokes the System.Windows.Forms.OpenFileDialog, which allows end-users to locate a report and load it in the End-User Report Designer.

Namespace: DevExpress.Xpf.Reports.UserDesigner

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

NuGet Package: DevExpress.Wpf.Reporting

Declaration

public ReportDesignerDocument OpenDocument(
    Action<ReportDesignerDocument> beforeLoad = null
)

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 selected report.

Remarks

The OpenDocument method invokes the OpenFile dialog to allow end-users to locate a required report. Then, the method creates a new instance of the ReportDesignerDocument class and loads the selected report to it.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OpenDocument(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.

See Also