aspose file tools*
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 15376
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: 60045

Moving to HTML/Javascript forum for future reference.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Page margin and orientation problem
Similar Threads
Help with Flying Saucer API
Jasperreport 0.6.1 and landscape problem
Page margin and orientation problem
Setting up Page Margins for IE -CSS
setting Page margin using javax.print API