Home Devices

Print pages alternating from two reports to PDF

I have two reports containing respectively all the fronts and all the backs of some pages of documents. I would like to get a PDF file with alternating pages, so I can print it with the printer's duplex option. How could I do?
Thanks

Comments

  • Hi Cristiano,

    Which version of ReportBuilder and Delphi are you currently using?

    Merging two reports like this may be possible but it will take quite a bit of code and understanding how reports are generated. It may be worthwhile to create a new single report with containing the proper page order.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2018
    Hi,
    I'm using ReportBuilder Professional version 15.04 and Delphi XE6.
    I tried to merge the two reports following the example 123 of the demo:
    with TppPDFDevice.Create(self) do
    try
      StartPrintJob := True;
      EndPrintJob := False;
      Publisher := ppReport1.Publisher;
      ppReport1.PrintToDevices;
      StartPrintJob := False;
      EndPrintJob := True;
      Publisher := ppReport2.Publisher;
      ppReport2.PrintToDevices;
    finally
      Free;
    end;

    I thought of alternating pages by printing them one at a time, from each report, with a loop, but I can not know the number of pages nor limit the print to the page I want.
    How can I create a single report with alternate pages that are different?
    Thanks for any advice...
Sign In or Register to comment.