This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes change print settings through javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "change print settings through javascript" Watch "change print settings through javascript" New topic
Author

change print settings through javascript

Punk Jain
Greenhorn

Joined: May 30, 2003
Posts: 2
I have an ASP page which the users will be printing through File Menu of their browsers. I want the page to print only in 'landscape' mode, even if the user printer settings are set to portrait. Is there something that can be done through javascript or otherwise to change the print settings of client machine to landscape?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
look into CSS, you maybe able to specofy the paper size for pronting, but not all browsers support it.
Eric
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: change print settings through javascript
 
Similar Threads
printing page in landscape without changing preferences.
Alter printer settings from jsp
printing in landscape using javascript
Help about PageFormat (Print)
change of Browser Page Setup in Javascript