• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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

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?

Thanigaivel S.
[ January 18, 2007: Message edited by: S Thanigaivel ]
Posts: 15385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe ActiveX is disabled on that computer.

    Bookmark Topic Watch Topic
  • New Topic