Finalize PDF file creation when merging multiple reports into one PDF
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks, you answered my question :-)
Regards,
Jure