Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing in Landscape mode

Status
Not open for further replies.

Streetdaddy

Programmer
Jun 10, 1999
161
AU
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=&quot;text/css&quot; media=&quot;print&quot;>
@page {size: landscape;}
</style>
and
<style type=&quot;text/css&quot; media=&quot;print&quot;>
@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!
 
hmmm... I've never seen that done. I know that window.print() is the EXACT same thing as pressing the print button on the file menu, so i don't think it's possible with css. if you do figure it out i would really like to see it though. Good luck

Later,
Greelmo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top