wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Printing in Landscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Printing in Landscape" Watch "Printing in Landscape" New topic
Author

Printing in Landscape

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
Is there a way to print web pages in landscape form?


By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18153
    
    8

Sure. When you get the "Print" dialog box, go into the Properties for the printer driver and check the box for landscape, or however your printer implements that. If you meant can your program force landscape printing on the user, then probably not. It's the user's privilege to print the document any way they like.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Paul,
I think Dale was asking how to force it to happen.

Dale,

There is no way currently to force the page to print in landscape. The only safe way is to have a pdf. IE has ActiveX that changes settings, but that is IE with certain security settings. Until the CSS spec for page layout is used in all of the browsers, you are stuck telling the user to do it.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing in Landscape
 
Similar Threads
landscape mode
Printing with JSP
JasperReports: subreport with different orientation?
Effect of Stronger Rupee vs Dollar
xsl:fo to PDF