permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes landscape orientation in html page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "landscape orientation in html page" Watch "landscape orientation in html page" New topic
Author

landscape orientation in html page

Adwait Patankar
Greenhorn

Joined: Jan 30, 2006
Posts: 6
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
subject: landscape orientation in html page
 
Similar Threads
Print in LANDSCAPE orientation ????
Need help: nede to print in landscape orientation
Accessing a printer on the client side using a servlet
Printing in Landscape by default usign JavaScript??
need some help printing please