ActiveReports Trouble - We're here to help

MJC cannot figure out how to merge multiple reports, so he's frustrated it with it.  It's actually simple, run the individual reports, then merge their page collections into a single report.

rpt1.Run();

rpt2.Run();

foreach(Page pg in rpt2.Document.Pages)

{

rpt1.Document.Pages.Insert(pg);

}

// now rpt1 is a merged report of rpt1 and rpt2.

Print | posted on Sunday, June 12, 2005 8:50 AM