<p>In our application we enable users to print pages. We do this by supplying a button which when click calls the window.print() function.<br>
Some of the pages would look better if they were printed in landscape mode rather than portrait. Is there a way to control the page layout from JavaScript?  </p>

<p>Update: Following the advice given here I looked for "css landscape" in google, and found the <a href="http://www.tek-tips.com/faqs.cfm?fid=5803" rel="noreferrer">following article</a> that showed ways of css-ly defining landscape:</p>

Do it with CSS by including a print stylesheet thusly:
```
```
<style type="text/css" media="print">@import url("/inc/web.print.css");</style>
```
```