JavaScript does not allow you to set the page orientation so you can print in Landscape mode. To workaround this limitation, simply add the following code to the … part of any HTML page:
Next, add @media to allow the page to print in landscape mode. To do this, define the following code between the
Note: This code only works on CSS2-compliant browsers?like IE 7.0 Beta.