View Full Version : change printer properties
kcatalin_ro
03-08-04, 07:05 AM
Hi,
Can anybody tell me how can I change printer orientation to default landscape (in Java). I think a can use ShellExecute, but don't know exactly how...
stdunbar
03-08-04, 10:52 AM
Take a look at java.awt.print.PrinterJob. You can set printer attibutes and even popup a GUI if you want the user to change any other settings.
Hi,
Can anybody tell me how can I change printer orientation to default landscape (in Java). I think a can use ShellExecute, but don't know exactly how...
kcatalin_ro
03-09-04, 03:29 AM
Take a look at java.awt.print.PrinterJob. You can set printer attibutes and even popup a GUI if you want the user to change any other settings.
I think I have to deploy the package java.awt.print in order to use...any ideea where I can find it?
kcatalin_ro
03-09-04, 07:15 AM
I think I have to deploy the package java.awt.print in order to use...any ideea where I can find it?
Now I know why i don't have it. Because I have jdk 1.1.6 :(
stdunbar
03-09-04, 11:48 AM
Wow - that's pretty old. I'd guess that you're working with an older I.E. browser, right? I think you may have to go native. Most of the interesting stuff was added in the 1.2 JDK and the really good stuff didn't show up until 1.4.
Now I know why i don't have it. Because I have jdk 1.1.6 :(
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.