A newer version of this page is available. Switch to the current version.

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.v20.2.dll


public ReportDesignerDocument OpenDocument(
    Action<ReportDesignerDocument> beforeLoad = null

Optional Parameters

Name Type Default Description
beforeLoad Action<ReportDesignerDocument>


An action that will be invoked before the report is loaded.


Type Description

A designer document that displays the selected report.


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.

See Also