Details
-
Enhancement
-
Resolution: Fixed
-
P2
-
1.4.0, 5.0
-
b108
-
x86
-
windows_nt, windows_xp
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8034622 | 7u65 | David Buck | P2 | Resolved | Fixed | b01 |
JDK-8024664 | 7u60 | David Buck | P2 | Closed | Fixed | b01 |
Description
Name: rl43681 Date: 04/23/2002
FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
FULL OPERATING SYSTEM VERSION :
Windows NT Version 4.0
A DESCRIPTION OF THE PROBLEM :
On Windows, the OS allows to display printer-specific
options dialogs (as can be reached via the "Properties"
button on a typical Windows "Print" dialog), via the
DocumentProperties system call, AFAIK.
It is required that the JDK allows to display those
printer-specific dialogs via some API call.
This bug can be reproduced always.
(Review ID: 145210)
======================================================================
feedback from a CAP member:
To invoke Windows printer-specific options dialog,
excute the following command line :
RUNDLL32 PRINTUI.DLL,PrintUIEntry /e /n "printer name"
sample code fragment:
PrintService[] ps =
PrintServiceLookup.lookupPrintServices(DocFlavor.SERVICE_FORMATTED.PRINTABLE,
null);
String printerName = ps[0].getName();
String cmd = "RUNDLL32 PRINTUI.DLL,PrintUIEntry /e /n \""+ printerName
+ "\"";
try{
Runtime.getRuntime().exec( cmd );
}
catch( Exception exc ){
exc.printStackTrace();
}
Attachments
Issue Links
- backported by
-
JDK-8034622 RFE: Java Printing: Provide a way to display win32 printer driver's dialog
- Resolved
-
JDK-8024664 RFE: Java Printing: Provide a way to display win32 printer driver's dialog
- Closed