Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page margin and orientation problem

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to HTML/Javascript forum for future reference.
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic