aspose file tools*
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Javascript] How to force printer to do landscape printing?