• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Printing from a jsp page- java attributes...?

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've heard that there is a way to set the printing attributes with java to make a printer print a document in landscape... does that carry over to jsp and web pages?
Does anyone know how I might set the default for printing something from my web page to 'landscape'? So if they just push the IE print button it'll automatically print in landscape?
If this can't be done with jsp (though... I sure hope it can be done with jsp) is there something else I could use?
Thank you.
 
Author
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(pressed Submit by accident)
you shoudl be able to set the alignment using CSS by putting
@page {size : landscape}
in the style section but I cant get it to work. In any case, this hasnt got anything to do with jsp or java because jsp pages are run on the server = by the time they arive in the browser, there is no jsp left in the page. so you cant control html page printing from java no. There is a way to do this for java applications but its an entirely different matter and involves the printing api
http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html
[ July 04, 2002: Message edited by: chanoch wiggers ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic