Page 1 of 1

I wish to print landscape automatically. please assist me.

Posted: Sun Jan 06, 2008 11:04 pm
by avmohankumar
Dear friends,

I have trouble with printing page with landscape. I am using java script to print the page. as well as I have set css file to print landscape but it is not working.

I have used these line in css files,

<style type="text/css">
<!--
@page { size: landscape; }
-->
</style>

it automatically takes the portrait (default one), but I wish to print landscape automatically. please assist me.

regards,
maza

Posted: Mon Jan 07, 2008 2:34 am
by andym01480
Can't be done I am afraid - landscape/portrait choice is a user only choice. Can't be forced! Even by CSS

But when I needed a landscape print document for a user I used PDF which can force it. use http://www.fpdf.org - it is pretty good.

Posted: Mon Jan 07, 2008 4:57 am
by avmohankumar
I want to work on the browser IE internet explorer.