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(); }
|