View Single Post
 
Old November 14th, 2007, 05:23 PM
vsr vsr is offline
Registered User
 
Join Date: Nov 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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