Skip to main content

Data Sources for Reports V2

The Reports V2 module supports CollectionDataSource and ViewDataSource data sources.

Use CollectionDataSource for small datasets because it loads all object fields, including those not shown in the report. If this causes performance issues, use ViewDataSource instead. It loads only the fields specified in its Properties and can retrieve values directly from business class properties or database expressions.

Both sources require IObjectSpace for dynamic data binding. Use the following methods to access the data:

To print a report from code, use ReportDataSourceHelper.SetupBeforePrint to register a service with an Object Space and perform the required initialization.