Print PDF from multiple tables
I need to print out an invoice and attach all receipts to it. So far my method sort of works:
1) Make a PDF of the invoice and count the number of pages (so page numbers are correct)
2) Make a PDF of the receipts and attach to the invoice
3) Show the PDF in a webviewer for double checking
4) Ask the user to cancel (return to the invoice form) or continue (assume they printed from the webviewer, save another copy of the PDF with the invoice number, and mark the invoice as being printed)
is there a better way to do this?