Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 14th, 2007, 05:23 PM
vsr vsr is offline
Registered User
Join Date: Nov 2007
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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript print function mii2029 ASP.NET 3.5 Basics 2 September 27th, 2008 12:56 PM
Print Query in Landscape using VBA RPetto85 Access VBA 2 June 19th, 2007 04:25 AM
Divided by Zero and Print Landscape mateenmohd Classic ASP Basics 3 May 14th, 2005 05:01 AM
How can I print MsChart.object in landscape? all21 Beginning VB 6 0 December 10th, 2003 04:48 AM
Command Button to Print in Landscape Orientation brlevy Access 3 June 9th, 2003 11:59 AM

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