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

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


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

Optional Parameters

Name Type Default Description
newReportFactory Func<XtraReport>


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

beforeLoad Action<ReportDesignerDocument>


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


Type Description

A designer document that displays the created report.


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