It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes change print settings through javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 15376
    
    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://aspose.com/file-tools
 
subject: change print settings through javascript
 
Similar Threads
printing in landscape using javascript
change of Browser Page Setup in Javascript
printing page in landscape without changing preferences.
Help about PageFormat (Print)
Alter printer settings from jsp