WestCoast_BC
asked on
window.print() not printing multiple pages
I am trying to print a document using window.print(). My problem is that it is only printing one page. What do I need to do to have it print the entire document? Also, what is the best way to ensure that parts of the document are not split across multiple pages? Is using the style page-break-before and page-break-after the best solution? Can I use this same style when creating PDF documents for keeping text together?
Thank you for your help
Thank you for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I hope I have described the solution to my problem
page-break-after and page-break-before are the best solution to keep content together during html printing. For PDFs it really depends of how are you creating the PDF, but probably it only will work if you are converting your HTML.