Skip to main content
A newer version of this page is available. .

ReportDesigner.OpenDocument(Stream, Action<ReportDesignerDocument>) Method

Loads a report from the specified stream and opens it in the End-User Report Designer.

Namespace: DevExpress.Xpf.Reports.UserDesigner

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

NuGet Package: DevExpress.Wpf.Reporting

Declaration

public ReportDesignerDocument OpenDocument(
    Stream originalReport,
    Action<ReportDesignerDocument> beforeLoad = null
)

Parameters

Name Type Description
originalReport Stream

A stream object that contains a report to be opened.

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 stream.

Remarks

The OpenDocument method creates a new instance of the ReportDesignerDocument class and loads a report to it.

See Also