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: 4212010
Votes 19
Synopsis RFE: Java 2D printing : want API to select paper tray when printing
Category java:classes_2d
Reported Against 1.2 , 1.2.2 , kestrel-beta
Release Fixed 1.4(merlin-beta)
State 10-Fix Delivered, request for enhancement
Priority: 5-Very Low
Related Bugs 4253465
Submit Date 16-FEB-1999
Description




I would like to have a way of making the printer get its paper from a specific paper tray. Also, I wonder how I'm supposed to
 print a 500 page report when 1 page creates a temporary file of 15 Mb...

I was shocked to see that this was not thought of in JDK1.2. Features like that are crucial for business applications.
PLEASE tell me that the printing team has been reinforced with some people with experience in real-world printing
 problems, and that we'll see a better API SOON!
Sorry about this outburst, but I was told that JDK1.2 would solve our printing problems, and I can't say that it is much 
of an improvement over JDK1.1.
(Review ID: 54198)
======================================================================




I have been studying the new printing API of the JDK 1.3 beta.
There are a lot of new features but one I still keep missing:
Even though there are various new options also for native printing dialogs and so on... Selecting from a common set of paper TRAYS still seems impossible without a dialog first.

Printing without the dialog became possible with Java 2
With JDK 1.3 you can print both sides of a page and lots of
other things. Will it be possible to also select the paper
tray before printing without confirming a dialog or is that
a few more JDK's away.
(Review ID: 94475)
======================================================================




Hi!

I am glad to see that the printing API appears to be greatly enhanced in JDK 1.3, but I missed one thing:

In all our applications we need to direct the printing to different paper trays on the printers.
Our customers have different paper-types in the different paper-trays of their laser-printers.

I saw no possibility to set which paper-tray the printing is supposed to go to in the proposed API.
Did I overlook something? If not, will you add this functionality in JDK 1.3?

Thanks,

Nils C. Hertzberg
(Review ID: 95418)
======================================================================
Work Around




All I was told by Sun developers there would be so far is using native functions to change the tray before printing in Java.
(Review ID: 94475)
======================================================================
Evaluation
Presumably user is looking for a "silent"or programmatic way to do this .
This maybe better implemented as part of a printer driver API.
==================

the new printing apis in merlin (1.4) allow discovery of aupported media
and media sources (trays) and specificationof these in print requests.
discovery of these is highly platform specific since it relies on platform
services so these may not always be available.

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

Submitted On 29-SEP-1999
devera
Also it would be nice "silent" select of printer. we have server
application which needs to print reports to several printers ..



PLEASE NOTE: JDK6 is formerly known as Project Mustang