
Merging Multiple Reports at Runtime - Crystal Reports.NET
If the reports don't use subreports, then you can make a main report and
include the others as your subreports. To get the second report to print
multiple times you are going to have to force the data to repeat itself (use
a field that is a dummy counter and group by this value). I have information
about subreports in Chapter 13 of my free ebook.
A Crystal Reports.NET book for programmers? Its free!
* Covers ASP.NET and Windows Forms
* Teaches all phases of report development
* Alerts you to the bugs and how to get around them
* Maps out the complex ReportDocument object model
* Shows how to perform runtime customization
* Demonstrates all options of connecting with ADO.NET
* Gives complete code listings for every concept presented
www.CrystalReportsBook.com?cpgn=ngcr_022403
/Brian Bischof
Quote:
> Does anyone know of a good way to merge multiple reports at runtime? I
> basically have two situations I am trying to solve
> 1) Two separate report files, a summarized and detailed view, which need
to
> be printed separated occasionally, but more often than not are printed
> together. Since our printer now is printing banner pages, there is a
banner
> page between the two reports, because they are two separate jobs. In an
> effort to reduce wasted paper, we'd like to merge the two output jobs into
> one job after the report is generated, and then send only the single job
to
> the printer.
> 2) We have another report (actually three individual reports) that we
print
> about 30-40 copies each month (with different data each printout), all at
> the same time. Again, because of the banner sheets we are printing before
> each job, we would like to have this output as one single print job, and
not
> 30-40 different jobs.
> Does anyone know of a good way to do this? I've thought about embedding
the
> final generated report inside a blank report at runtime, but I haven't
seen
> any way of doing this that I can get a demo of. Does anyone have any
other
> suggestions for a good method for combining the output?
> Thanks,
> Ryan Gregg