ReportDesigner.NewDocument(Func<XtraReport>, Action<ReportDesignerDocument>) Method

Creates a new report based on the specified template and opens it in the End-User Report Designer.

Namespace: DevExpress.Xpf.Reports.UserDesigner

Assembly: DevExpress.Xpf.ReportDesigner.v21.1.dll

Declaration

public ReportDesignerDocument NewDocument(
    Func<XtraReport> newReportFactory = null,
    Action<ReportDesignerDocument> beforeLoad = null
)

Optional Parameters

Name Type Default Description
newReportFactory Func<XtraReport>

null

A function that returns a template report to create a new report.

beforeLoad Action<ReportDesignerDocument>

null

An action that will be invoked before a new document is created.

Returns

Type Description
ReportDesignerDocument

A designer document that displays the created report.

Remarks

The NewDocument method creates a new report based on the specified template, creates a new instance of the ReportDesignerDocument class and loads the report to the created document.

See Also