This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Page margin and orientation problem" Watch "Page margin and orientation problem" New topic
Author

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,
Sivaraman.L
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

Moving to HTML/Javascript forum for future reference.
bear


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