p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript How-To (http://p2p.wrox.com/forumdisplay.php?f=87)
-   -   javascript print in landscape (http://p2p.wrox.com/showthread.php?t=63774)

vsr November 14th, 2007 05:23 PM

javascript print in landscape
 
Hi All,
I have a webpage written in c# asp.net. The page has a datagrid and a print button. The print button has the javascript onclick="javascript:window.print();"
When I push the button, It opens the Print dialogue box.

I want the script to change the Orientation to Landscape.
By default the preference of the Orientation is Potrait.

I tried using CSS but because I have a datagrid on the page its not working. CSS works if I don't have the datagrid.
This is kinda urgent.

Thanks




All times are GMT -4. The time now is 06:09 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.