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

Initializes the specified report.

Namespace: DevExpress.ExpressApp.ReportsV2

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


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


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.

See Also