468,733 Members | 1,204 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

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 3338
Atli
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
Niheel
2,426 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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.