Page 1 of 1
Control Page Orientation
Posted: Wed Jan 16, 2008 5:42 am
by pcoder
Hi,
Can we control the default orientation of page to Landscape or portrait before printing a page from PHP.
Thanks
Re: Control Page Orientation
Posted: Wed Jan 16, 2008 6:30 am
by Kieran Huggins
nope - it's purely a print dialog option.
Re: Control Page Orientation
Posted: Wed Jan 16, 2008 7:24 am
by VladSun
I'm not sure whether it will work (browser dependent?)
Code: Select all
<style type="text/css" media="print"> @page port {size: portrait;}@page land {size: landscape;} .portrait {page: port;} .landscape {page: land;} </style>
Re: Control Page Orientation
Posted: Thu Jan 17, 2008 2:09 am
by pcoder
It only works in Opera..
Any way thanks..