I'm looking for pointers here, not necessarily detailed code examples. I want to solve this one myself as much as possible.
I have an "online statement" site that displays account activity for customers. I have an associated "print.css" file so it can be printed out in a nice, readable format.
Some of our customers have multiple accounts (one guy has around 80).
For customers with multiple accounts, I have a summary display that adds up all their account activity. Good as far as it goes.
But some of our customers want to be able to print out and file the statement for each individual account (at a minimum, they need to do this at tax time).
The guy with 80 accounts, understandably, doesn't want to have to manually display and print 80 pages.
Is there a way that I could put a "print all" button on the page, that when pressed lets the user print out statements for all of their accounts, using the format established by print.css? Ideally without having to display each page, or hit "print" in a dialog box 80 times?
I was contemplating trying to write a loop that, for each of the 80 queries, would write the results into a non-viewed HTML shell, then add each page to a PDF using print.css, then give the user the print dialog box in order to print the PDF (or allow them to save the PDF to their desktop). But I'd appreciate ideas.
Thanks!