I need to produce a 'report' from a whole bunch of different criteria used to generate the resulting document on the web.
This will need to be printed to an A4 sheet, but here is the rub - I need to be able to control page breaks. I need to show certain things on page 1, then a new page 2 and so on.
Is this possible??
Big problem is that I don't know where I need the pagebreak - its dynamically generated content from a number of options, which results in the finished document.
Its one of those things that is so close to working, but I cannot use it as the resulting report looks shit - and it's a report that clients see and also product providers, so it has to look decent.
Can someone show me the way on using Javascript to perform the A4 size calculation?