Print Web Page in Landscape

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?
Richard KortsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
b0lsc0ttConnect With a Mentor IT ManagerCommented:
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
0
 
Richard KortsAuthor Commented:
To b0lsc0tt,

Can you direct me to the css suggestions?

Thanks
0
 
Richard KortsAuthor 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
0
 
b0lsc0ttIT ManagerCommented:
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>
0
All Courses

From novice to tech pro — start learning today.