We have attached a sample solution which will show you how to work with a BaseReport as a template for other reports.
There are some guidelines that should be followed in order to achieve this scenario.
First of all, there should be at most one Detail, PageHeader, PageFooter, ReportHeader and ReportFooter section in the two reports (base and inheriting) taken together. GroupHeaders and GroupFooters for a given group can also appear in only one of the two reports. However, if one report contains a group, the other can contain another group. In other words these sections should appear only in one of the two reports. In our example we have deleted the Detail section from the base report by hand, since the inheriting report will supply it. See MyBaseReport class inside the BaseReport
project. Note that this report is without a Detail section - you have to manually delete the Detail section and all lines from the code associated with it.
After that, create a report that will later inherit from the base report. Remove all of its sections except the Detail section.
While you are designing the report in the designer it still has to inherit form Telerik.Reporting.Report. When you are done with the design, comment out the original class declaration line and replace it in the following manner:
// public partial class Report1 : Report
public partial class Report1 : BaseReport.MyBaseReport
The code above is for the case when you compile the application
. If you want to design the inherited report again, switch back to the original line:
public partial class Report1 : Report
// public partial class Report1 : BaseReport.MyBaseReport
When you are done designing, inherit from MyBaseReport, build, and run your application.
the Telerik team