471,108 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

How to print a web page in landscape mode automatically

I have to print a web page in landscape mode automatically when print is given. i dont want to go to settings and change the mode manually each time. help is needed
Jul 30 '10 #1
2 3468
5,058 Expert 4TB
The @page size CSS style would be the way to do that, although I'm not sure this is a widely supported method. I know of no other way though.

Expand|Select|Wrap|Line Numbers
  1. @page {
  2.   size: A4 landscape;
  3. }
Jul 30 '10 #2
2,452 Expert Mod 2GB
Because javascript usually call's the browsers Print function and from there you have to choose landscape it would be hard to do set the printer to Landscape.

There are solutions, but they are browser specific.
Aug 3 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by microsoft | last post: by
reply views Thread by tupolev | last post: by
5 posts views Thread by cpopham | last post: by
reply views Thread by BlueSky | last post: by
1 post views Thread by nuhura01 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.