JDK-4137899 : RFE: Get a list of printer devices
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0,1.2.1,1.2.2_006,1.3.0
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_2.6
  • CPU: generic,sparc
  • Submitted: 1998-05-13
  • Updated: 2000-11-21
  • Resolved: 2000-11-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 betaFixed
Related Reports
Duplicate :  
Relates :  
Description

Name: el35337			Date: 05/13/98


In my app. I know the number of pages a document
has, but do not have them loaded (there might be
20,000  pages). Due to this fact, the 
PrinterJob().setup(Book) is not very help since it 
takes a Book object...something that I create 
after I know what is to be printed.  Using the
coventional method I would have to create my
Book with all 20,000 pages just to print page 1.

Is there a way I can get a list of
the current printers and then be able to create 
a properties button (like in Word97) to set 
specific parameters if necessary.  (This would be
kind of generic in Solaris, but would be a the
driver specific dialog box in Windows.)

(Review ID: 28861)
======================================================================

Name: krT82822			Date: 11/02/99


java version "1.3beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)
0. Download JDK1.3 Beta or latest JDK 1.3;
1. Check out the JDK1.3 docs and realize that Java STILL doesn't support
enumeration of printers.

----------

more comments from user:


I am sorry I forgot to mention that I was pertaining to the API and NOT to the Java print dialog box (if that's your impression). We are using Sun JDK 1.3Beta
VM for Windows XX. I was hoping that there is some sort of API call to enumerate the printers. We want to be able to display just one dialog for every print (our
dialog not Java's) and we were somehow happy to know that 1.2 and 1.3 supports background printing. We have our own parameters in this dialog and we want
to be able to list in this dialog the available printers for the user to choose from. We can't afford to display the Java print dialog, otherwise, the user would have to
"OK" multiple times.
(Review ID: 97324)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta FIXED IN: merlin-beta INTEGRATED IN: merlin-beta
14-06-2004

EVALUATION The 1.2 printing API is owned by 2D. Reassigning to classes_2D. david.mendenhall@eng 1998-05-13 ================================ Similar to 4210996 in that it wants additional programmatic querying and control capabilities over attached printer devices. ========================= An overlapping rfe (4236038) requested both of the above cited features and also the ability to request 2 sided printing. ###@###.### 2000-11-03 We have Fujitsu requesting that PrintDialog() should allow the user to select the printer from the list of printers configured on the system. PrintDialog() on Windows/NT allows you to select the printer but Solaris dosen't. =========================== added as part of Java Print Service API phil.race@eng 2000-11-15 ========================
15-11-2000