This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes [Javascript] How to force printer to do landscape printing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "[Javascript] How to force printer to do landscape printing?" Watch "[Javascript] How to force printer to do landscape printing?" New topic
Author

[Javascript] How to force printer to do landscape printing?

S Thanigaivel
Ranch Hand

Joined: Oct 06, 2005
Posts: 60
Hi All,

When i use window.print(), by default printing is done in portrait orientation. I want to automatically change this orientation to landscape.
Can anyone give me the solution for this?

I am using IE. I took the following script function from internet.
But when executing this i am getting an exception saying
'Automation server cann't create object'. But the same is running properly in another system. What might be the problem?



Thanks,
Thanigaivel S.
[ January 18, 2007: Message edited by: S Thanigaivel ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Maybe ActiveX is disabled on that computer.

Eric
 
Consider Paul's rocket mass heater.
 
subject: [Javascript] How to force printer to do landscape printing?
 
Similar Threads
To enable landscape finish for taking printout using java script
Printing a browser-page in landscape mode
i need help
Change the Printer Orientation??
jQuery Equivalent of Prototype Function.bind