How To…Merge Multiple Reports into one PDF


“How do I merge multiple reports into a single PDF file?”


For ReportBuilder 11, new properties were added to the PDF Device allowing the developer to manually start and end the print job.  This allows you to easily merge multiple reports into a single PDF file.  Simply set the EndPrintJob property to false before printing the first report and set StartPrintJob to False befor printing the rest of the reports to be merged.  Before printing the final report, set EndPrintJob back to True to finalize the PDF file creation.

It is possible to preform this task in earlier versions of ReportBuilder as well by using a TppPDFDevice descendent class.  See the specified example below for more information.


Sample Delphi code: