Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
S Thanigaivel
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe ActiveX is disabled on that computer.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic