Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4673406

RFE: Java Printing: Provide a way to display win32 printer driver's dialog

    XMLWordPrintable

Details

    • 2d
    • b108
    • x86
    • windows_nt, windows_xp

    Backports

      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

            Activity

              People

                prr Philip Race
                rlewis Roger Lewis (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: