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).
posted 13 years ago
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