ReportGenerator.GenerateReport(XtraReport, BaseView, ReportGenerationOptions, Boolean) Method

Generates a new report using the specified source report and grid view. Only the settings related to the document layout of the source report are preserved in the resulting report (such as XtraReport.Landscape and XtraReport.Margins).

Namespace: DevExpress.XtraReports.ReportGeneration

Assembly: DevExpress.XtraReports.v18.1.Extensions.dll

Declaration

public static XtraReport GenerateReport(
    XtraReport report,
    BaseView view,
    ReportGenerationOptions options,
    bool useExpressionBindings
)
Public Shared Function GenerateReport(
    report As XtraReport,
    view As BaseView,
    options As ReportGenerationOptions,
    useExpressionBindings As Boolean
) As XtraReport

Parameters

Type Name Description
XtraReport report

An XtraReport object.

BaseView view

A BaseView descendant.

ReportGenerationOptions options

A ReportGenerationOptions object.

Boolean useExpressionBindings

true, to use expression bindings; false, to use the legacy binding mode.

Returns

Type Description
XtraReport

An XtraReport object.