ReportDataSourceHelper.SetupReport(XtraReport, ReportParametersObjectBase, CriteriaOperator, Boolean, SortProperty[], Boolean) Method

Initializes the specified report.

Namespace: DevExpress.ExpressApp.ReportsV2

Assembly: DevExpress.ExpressApp.ReportsV2.v18.1.dll

Syntax

public void SetupReport(
    XtraReport report,
    ReportParametersObjectBase parametersObject,
    CriteriaOperator criteria,
    bool canApplyCriteria,
    SortProperty[] sortProperty,
    bool canApplySortProperty
)

Parameters

Type Name Description
XtraReport report

An XtraReport object that specifies the report.

ReportParametersObjectBase parametersObject

A ReportParametersObjectBase object that specifies report parameters.

CriteriaOperator criteria

A CriteriaOperator object used to filter data.

Boolean canApplyCriteria

true, if the criteria can be applied; otherwise, false.

SortProperty[] sortProperty

An array of SortProperty objects which specify data sorting.

Boolean canApplySortProperty

true, if the sorting can be applied; otherwise, false.

Internally, this method invokes the following ReportDataSourceHelper's methods, sequentially:

If there is no need to apply criteria, sorting, and pass report parameters, use another overload of the SetupReport method that takes the single report parameter. An example of using this overload is provided in the ReportDataSourceHelper.BeforeShowPreview topic.