Merge Reports with Subreports

There are numerous ways to merge multiple reports into one.

One way is to utilize subreports.  This involves creating a main “container” report with a single detail band only.  Inside the detail, a number of subreports are added to hold the reports needing to be merged.

 

 

 

 

 

 

 

 

 

 

 

 

 

The type of subreport used is important for how the final result will appear.

Section Style Subreports: Each merged report will look and act identical to the original and will be separated by a page break.

Child Style Subreports: Reports will appear continuous without space between each one.  Child subreports do no support header and footer bands.  Subreports must be set to ShiftRelativeTo to avoid overlapping.

Subreports should be assigned either by loading a template file or by manual creation.

ppSubreport1.Report.Template.LoadFromFile('MyReport1.rtm');
ppSubreport2.Report.Template.LoadFromFile('MyReport2.rtm');

See the following example for how this can be done: MergeReports.zip