File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

landscape orientation in html page

 
Adwait Patankar
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per the requirement I supposed to show a report in html page with a print option. I want the report to be printed automatically by clicking the print button without having the user to change "page setup" - "orientation".

How do I control the page to be printed landscape, when print button is clicked.

Thanks in advance.

Adwait
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is asked once a week and there is no way to do it with the current browsers. Future versions should use a CSS property to determine it. Right now you only safe bet is to use a pdf for them to print out.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic