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

Finalize PDF file creation when merging multiple reports into one PDF

edited December 2014 in General
Hi,

following the example on
http://www.digital-metaphors.com:8080/Output/PDF/How_To...Merge_Multiple_Reports_into_one_PDF
I was able to merge several existing reports into one PDF, however I
wonder if there's any other way to finalize the PDF file creation other
than setting "lPDFDevice.EndPrintJob := True;" before the last report
prints? So the question is: is it possible to finalize the PDF file
*after* the last report was printed but lPDFDevice.EndPrintJob was set
to false when that occured?

I was thinking that one dirty workaround could be to print a "dummy"
empty report at the end having set "lPDFDevice.EndPrintJob := True;",
but that would add a blank page at the end of the PDF, so that's
probably not a good idea.


Thank you in advance and regards,
Jure

Comments

  • edited December 2014
    Hi Jure,

    I'm unclear about what you are ultimately trying to accomplish. Setting
    the Device.EndPrintJob property to True simply lets the device know that
    it needs to call the EndJob routine after the report finishes generating.

    It is necessary to call EndJob on the PDF device in order to finalize
    the PDF file, otherwise it will be incomplete.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2014
    Hi Nico,

    Thanks, you answered my question :-)

    Regards,
    Jure

This discussion has been closed.