How To…Collate Subreport Pages

Question

“How can I can collate the pages of my subreport?”

I have two subreports and would like for the pages to alternate subreport1 page 1, subreport2 page 1, subreport1 page 2, subreport2 page 2,..

Solution

This example generate the pages to cache, then re-orders the page cache, prior to preview.

Download: CollateSubReportPages.zip

Sample Delphi code: