?
Solved

How Do You Print an Entire Page Using JavaScript Print Functionality?

Posted on 2014-09-11
4
Medium Priority
?
220 Views
Last Modified: 2014-09-22
I am only able to print the part of the page that is visible using JavaScript window.print() functionality.  I need to know how to print the full web page - including the contents the user has to scroll to get to.

How can this be done?

Thanks,

Dan
0
Comment
Question by:danielolorenz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40317643
"JavaScript window.print()" should be opening the print dialog on the target machine.  JavaScript itself does not do any direct printing.  I usually use the "Print Preview" dialog to print what I want.  It will still print in pages because that's what printers do.
0
 

Author Comment

by:danielolorenz
ID: 40317955
I do not have the print preview dialogue.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 40318254
Although you can't open it with JavaScript, every browser that I know of has Print Preview on the File menu.  That includes Firefox, IE, Safari, Opera, and Chrome always opens it's own print preview for printing.  In addition, if I press Ctrl+P here in Firefox, the checked option is to print all pages.
0
 

Author Closing Comment

by:danielolorenz
ID: 40338253
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question