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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.