Hello everyone and thanks for your help in advance. I need to develop a printable billing statement. In the past, my go-to solution would have been to dynamically generate some type of PDF document. However, I am reading more and more about printable web pages being used rather than involving a separate programming paradigm. Is it possible or desirable to create a billing statement using a web page and what are the drawbacks and advantages of doing so? How do I get started?
OK. I’m really not the sharpest tool in the shed (just ask my wife) but it really looks all over the board including some very expensive plug-ins. Is it just a bad idea to try to create printable HTML?
Thanks for the response. I need to develop a billing statement that will be, at the most two printed pages. The statement will need to be displayed on the website as well as be printable, so my thinking was to simply reuse the page and reformat with css. So at most, I need to handle one page break (which I have no idea how to handle) and then try to get the formatting to where it looks good in print (have never done this before).
Great response and lots of help. I appreciate it. One last noob question is the implementation. The examples show a statically assigned breakpoint after a table of contents section. What happens if a table of contents is long enough to span two pages. Or if the table of contents is dynamically edited and lengthened by some type of user input. Is there a way to programmatically insert a page break? For example, in a very crude print document, you might implement a line-counter and break after line 25 has been reached. Obiously HTML requires something more sophisticated, but I think you get the idea.
The breaks have to be hard coded in the HTML - some browsers will even ignore them when applied via an external CSS.If you want more flexibility then the alternative has always been to convert to PDF.