The moose likes Java in General and the fly likes Print Properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Print Properties" Watch "Print Properties" New topic

Print Properties

Dave Jaffe

Joined: Oct 19, 2002
Posts: 1
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"

Joined: Sep 29, 2000
Posts: 8521
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.

"JavaRanch, where the deer and the Certified play" - David O'Meara
rocket mass heater kickstarter
subject: Print Properties