Skip to main content
All docs
V24.2
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Initializes the specified report.

Namespace: DevExpress.ExpressApp.ReportsV2

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

#Declaration

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 that specify data sort order.

canApplySortProperty Boolean

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

#Remarks

If there is no need to apply criteria and sorting, and pass report parameters, use another overload of the SetupReport method that takes a single report parameter. An example on how to use this method is available in the following topic: How to: Merge the Pages of Two Reports.

See Also