Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Muiltiple prints to the same PDF file

Hi, Is it possible to print to a PDF file, then keep printing to the same file as new pages ?

Comments

  • Even a page for it - Nice !
  • Hi Nico
    Its so close to working. An example with child items would be really helpful as I keep getting this when trying to either open the file or attach to an email -

    Is there a command to issue after printtodevices that unlocks the file ? It only happens when there are morore than 1 print in the PDF file.
    ---------------------------
    We can't open 'D:\Documents\MidSoft\SkipTrak\pdf\INV55531_POD.PDF'. It's possible the file is already open, or you don't have permission to open it.

  • Hi Andy,

    For the last Report, set PDFDevice.EndPrintJob to True prior to calling Report.PrintToDevices. This is shown in the rbWiki example. When EndPrintJob is True, the PDF output file will be closed.

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • Hi Nico

    Yes, it was a data error as only didn;t work when there was 1 record.
    Thanks
  • Is there a way to do this only in RAP?
  • Hi Mike,

    RAP is designed to be executed per report. RAP code is embedded inside a single report definition and executes during that report's generation process.

    The task described in this thread manages multiple reports being generated in sequence and then merged into a single file.

    While it could be possible to call a RAP pass-thru routine that merges multiple reports, it would take some trial and error to get the timing right. Basically, while executing a "main" report, you would then be generating and merging multiple other reports to file which could cause conflicts.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.