Link to home
Start Free TrialLog in
Avatar of WestCoast_BC
WestCoast_BCFlag for Canada

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
Avatar of Bardobrave
Bardobrave
Flag of Spain image

Window.print() opens the printing configuration window, there you can select if you want to print one page or all the content. Check that your printing configuration is correct.

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.
ASKER CERTIFIED SOLUTION
Avatar of WestCoast_BC
WestCoast_BC
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of WestCoast_BC

ASKER

I hope I have described the solution to my problem