Skip to main content
All docs
V23.2
.NET 6.0+

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

Initializes the specified report.

Namespace: DevExpress.ExpressApp.ReportsV2.Services

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

Declaration

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

Parameters

Name Type Description
report XtraReport

An XtraReport object that specifies the report.

parametersObject ReportParametersObjectBase

A ReportParametersObjectBase object that specifies report parameters.

criteria CriteriaOperator

A CriteriaOperator object used to filter data.

canApplyCriteria Boolean

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

sortProperty SortProperty[]

An array of SortProperty objects which specify data sorting.

canApplySortProperty Boolean

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

Remarks

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