ReportDataSourceHelperBase.SetupReport(XtraReport, ReportParametersObjectBase, CriteriaOperator, Boolean, SortProperty[], Boolean) Method
Initializes the specified report.
Namespace: DevExpress.ExpressApp.ReportsV2.Services
Assembly: DevExpress.ExpressApp.ReportsV2.v24.2.dll
NuGet Package: DevExpress.ExpressApp.ReportsV2
#Declaration
public void SetupReport(
XtraReport report,
ReportParametersObjectBase parametersObject,
CriteriaOperator criteria,
bool canApplyCriteria,
SortProperty[] sortProperty,
bool canApplySortProperty
)
#Parameters
Name | Type | Description |
---|---|---|
report | Xtra |
An Xtra |
parameters |
Report |
A Report |
criteria | Criteria |
A Criteria |
can |
Boolean | true if the criteria can be applied; otherwise, false. |
sort |
Sort |
An array of Sort |
can |
Boolean | true if sorting can be applied; otherwise, false. |
#Remarks
Internally, this method invokes the following ReportDataSourceHelper methods, sequentially:
- ReportDataSourceHelperBase.SetupReportDataSource
- ReportDataSourceHelper.SetXafReportParametersObject
- ReportDataSourceHelper.RegisterObjectSpaceProviderService
- ReportDataSourceHelper.RegisterReportEnumLocalizer
- ReportDataSourceHelper.AttachCriteriaWithReportParametersManager
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.