Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4137899
Votes 115
Synopsis RFE: Get a list of printer devices
Category java:classes_2d
Reported Against 1.2.1 , 1.2beta3 , 1.2.2_006 , kestrel-beta
Release Fixed 1.4(merlin-beta)
State 10-Fix Delivered, request for enhancement
Priority: 5-Very Low
Related Bugs 4236038 , 4645377
Submit Date 13-MAY-1998
Description




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  customer ...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)
======================================================================




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)
======================================================================
Work Around
N/A
Evaluation
The 1.2 printing API is owned by 2D. Reassigning to classes_2D.
  xxxxx@xxxxx   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.

  xxxxx@xxxxx   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

  xxxxx@xxxxx   2000-11-15
========================
Comments
  
  Include a link with my name & email   

Submitted On 30-JUL-1998
fpati
Any way to do it in JDK 1.1.6 ?


Submitted On 04-OCT-1999
donnell
I don't believe this should be an REF.  The
GraphicsDevice documentation states that this
can be done now.


Submitted On 02-NOV-1999
marlonb
I hope by the time 1.3 is released, it would be at least complete!


Submitted On 10-JAN-2000
pazzo
PLEASE don't forget the requests in the related BUG 4236038.
The trays, would need them really hard!
Thx


Submitted On 16-JAN-2000
jteale
The request for full duplex printing would be wonderful. 


Submitted On 03-APR-2000
dkf
There certainly seems to be a hole in the API available for
putting this sort of thing in in future.  If a
GraphicsEnvironment could supply a list of printer devices,
and then if you could create a PrinterJob that defaults to a
specific device, this would be very nice indeed.

(And yes, I do know about the difficulty of finding out what
printers are installed on some platforms.)


Submitted On 03-JUL-2000
goddard1
Cheat. I need this functionality now and the Java people 
don't care about this... We are so dependant of this 
people.. Java is so limited compared with C++!!!



PLEASE NOTE: JDK6 is formerly known as Project Mustang