We help IT Professionals succeed at work.

Print Web Page in Landscape

Richard Korts
on
How can I use a Javascript function (connected to a text "print this page" link to force a web page to print in landscape mode?
Comment
Watch Question

IT Manager
CERTIFIED EXPERT
Commented:
rkorts,

Javascript doesn't provide a way to do this.  I have seen some suggestions that offer a CSS (i.e. style) type solution but those are usually browser specific.  In fact I think just IE.  SInce you mentioned all browser I am not sure this will be enough for you.

Let me know if you have any questions or need more information.

b0lsc0tt
Richard KortsBusiness Owner / Chief Developer

Author

Commented:
To b0lsc0tt,

Can you direct me to the css suggestions?

Thanks
Richard KortsBusiness Owner / Chief Developer

Author

Commented:
I'm giving you the points even though this didn't solve the problem. I am solving it by creating a landscape pdf that "SEEMS" to force the browser (at least IE & Firefox) to print landscape & not even allow Page Setup to be accessed (it is grayed out).

Also because I consider you as a good source of solutions to other issues.

rkorts
b0lsc0ttIT Manager
CERTIFIED EXPERT

Commented:
Thanks!  Very generous.  I am sorry I didn't get a chance to respond to your last post but the PDF solution is better in my opinion and should be more reliable.  I am not a fan of PDF usually but this is a good case for it. :)

I will post your grading comment below.  Right now EE just shows them to the asker and experts that posted a solution.  There is good info in it though so I will paste it below.  At some point EE is suppose to make it so all can see those comments.

Thanks again for the kind words, the grade and the points.  I am glad  I could help you again even if it wasn't as much as I would usually like to do.  I'll see you around. :)

bol

<grading comments>
I'm giving you the points even though this didn't solve the problem. I am solving it by creating a landscape pdf that "SEEMS" to force the browser (at least IE & Firefox) to print landscape & not even allow Page Setup to be accessed (it is grayed out).

Also because I consider you as a good source of solutions to other issues.
<end>

Explore More ContentExplore courses, solutions, and other research materials related to this topic.