How to do landscape printing using Javascript or CSS in IE7

Posted by arvind.thakur8 on 08-Jun-2011 03:18

Hi Guys,

I m writing one HTML page where i wanted the page orientation to be  set to LANDSCAPE through Javascript or CSS. So when I click on Print  button or anyways on the HTML page, the print window will pop-up so now  in that orientation property should be set to LANDSCAPE.

So does anyone know how to accomplish this?

Thanks in advance.

All Replies

Posted by Matt Baker on 08-Jun-2011 09:17

IE7 doesn't support it.  It is part of new css 2.1 spec (which was just approved).  IE 7 is a very old, very buggy, very non-standard compliant browser.  Update to a newer one, like IE 9 or Firefox 4 or Chrome or Safari or something and save yourself lots of grief.

This thread is closed