Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Print Properties

 
Dave Jaffe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my java 1.1 program, I want to print a graph in landscape. I would like the Print Dialog that appears aftet the call to getPrintJob() to have landscape pre-selected. I thought creating a "Properties" object would allow this but I cannot find what string (if any) I should use for the key-value pair. Is there a property I could set to accomplish this? Or is there some other way to accomplish this? (PS. my applet runs in IE on Windows platforms).
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason that the PrinterJob in Java just invokes the platforms underlying Print routine is that this gets pretty close to the OS. For you to manipulate the Print routine and page setup, you would probably need to do something platform specific.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic