Generate report with attached PDF
Is it possible to print a report/layout and attach a seperate PDF (that is in a container field on that layout) all in one action?
You can certainly put a PDF in a container field, but why would you want to do that? What result are you trying to produce?
The layout is for Quotations and I once the quotation is confirmed by the client they send a Purchase Order to me, so I put that PDF of the Puchase Order in a container field on that layout to keep the quotation and PO together. Anyway, when I send the invoice to the client I need to attach that PO so I was wondering if it was possible to automatically attach that PO to the invoice when printing.
With a script, you can use Save As PDF with an append option that appends the newly generated PDF pages to the end of an existing PDF file. Thus, you can export your PDF from the container field, append the new PDF pages to the end of it. This new file can then be inserted back into a container field, it can be attached to an email or opened so that you can view and print the PDF.
Thanks Phil, how can I append the PDF from the container field to the end of the printed layout? I've done it as you said above but would like it the other way round.
However, if you can set up a layout such that Save A PDF genrates a PDF of what you currently keep in the container field, you can use Save A PDF to generate the first part of the layout, then use Save A PDF with this other layout to append it to the end of the first PDF.
Retrieving data ...