Skip to content Skip to sidebar Skip to footer

How Do I Make An Html Page Print In Landscape When The User Selects 'print'?

We generate web pages that should always be printed in landscape mode. Web browser print dialogs default to portrait, so for every print job the user has to manually select landsca

Solution 1:

A quick Google indicates that it's not really supported. There's more than a few folks out there trying to hacktheir way to it - but I'd strongly suggest just rendering a server side PDF instead.

Solution 2:

Possible in CSS2 (@page, looks like Opera only) and in CSS3 which will work nowhere. Sorry.

Solution 3:

The @page rule is supposed to allow this, but is only implemented in Opera.

Solution 4:

I was looking to do this same thing and found this article. It looks particularly "hacky" and as the author points out, may invoke an active x warning in IE. Seems like a losing proposition to confuse the user with an active x warning when they just wanted to print a web page.

Post a Comment for "How Do I Make An Html Page Print In Landscape When The User Selects 'print'?"