Streetdaddy
Programmer
I have sifted through a lot of topics about printing in Landscape mode but none of them provide a working example and I think I'm more confused than when I started looking!
I have a page which does a window.print() which obviously brings up the Printer dialog. I want the page to print out in Landscape mode without the user having to set their printer options to Landscape.
I've tried:
<style type="text/css" media="print">
@page {size: landscape;}
</style>
and
<style type="text/css" media="print">
@media print {size: landscape;}
</style>
but neither works...
Has anyone been able to achieve this? If so, can you provide the required CSS, I.e. the required parameters for the <STYLE> tag and the CSS class(es)...
Any help is much appreciated!
Miles
Those Micros~1 guys sure know what they doing!
I have a page which does a window.print() which obviously brings up the Printer dialog. I want the page to print out in Landscape mode without the user having to set their printer options to Landscape.
I've tried:
<style type="text/css" media="print">
@page {size: landscape;}
</style>
and
<style type="text/css" media="print">
@media print {size: landscape;}
</style>
but neither works...
Has anyone been able to achieve this? If so, can you provide the required CSS, I.e. the required parameters for the <STYLE> tag and the CSS class(es)...
Any help is much appreciated!
Miles
Those Micros~1 guys sure know what they doing!