How to: Use a Custom XtraReport Descendant as the Base Class for New Reports
- 2 minutes to read
In certain scenarios you may want to customize the base reports class to provide custom functionality available in all new reports. This topic describes how you can register a custom XtraReport descendant that will be used when an end-user creates a report at runtime.
Assume you have the following custom report class.
Do the following to use MyXtraReport instead of XtraReport in new user-defined reports.
In the module project, inherit the ReportsStorage class and override the CreateReport method.
In the module’s constructor, assign an instance of your ReportsStorage descendant to the static ReportDataProvider.ReportsStorage property.
To check the result, run the application and create a report.