The moose likes JSP and the fly likes Page margin and orientation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Page margin and orientation problem" Watch "Page margin and orientation problem" New topic

Page margin and orientation problem

Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Hai all,
I am developing a web application which generates HTML Reports. This is done by dynamically generating all HTML tags and printing it using the output stream. I am able to generated the page content dynamically and show it but I was not able to set the Margin and Orientation of the Page. The page has to be printed as Landscape. Is their any way to use Java Printing API and set the margin and orientation.
Thanks in advance,
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can not control the way that it is printed out. Hopefully in future versions of CSS that you will be able to control this information.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63869

Moving to HTML/Javascript forum for future reference.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Page margin and orientation problem
It's not a secret anymore!