wood burning stoves 2.0
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Printing in Landscape" Watch "Printing in Landscape" New topic

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

Joined: Oct 14, 2005
Posts: 19973

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

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


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.

I agree. Here's the link: http://aspose.com/file-tools
subject: Printing in Landscape
It's not a secret anymore!