-
Bug
-
Resolution: Fixed
-
P3
-
6
-
mustang
-
generic
-
generic
-
Verified
I am printing some graphical print data using StreamPrintService and PrinterJob. Destination attribute is not supported by the StreamPrintService but I still add it to the PrintRequestAttributeSet passed to the PrinterJob.printDialog. When the dialog comes up, 'PrintToFile' option is shown as selected even though it is disabled. When I click 'OK' on the print dialog, a file dialog is shown. I feel this is not correct. When 'PrintToFile' option is not supported, it must not be shown as selected in the print dialog even when the user specifies a destination attribute. Becuase it does not really make sense to bring up the file dialog when the destination attribute itself is not supported.
This is reproducible since JDK1.4 on all platforms.
I have attached a sample test. Execute the sample test. You would get a print dialog. Check whether 'PrintToFile' option is selected. Click 'OK'. If a file dialog is shown, the bug is reproduced. Typically any unsupported attribute must be ignored by the print service not only at the time of printing but also when showing print dialogs.
This is reproducible since JDK1.4 on all platforms.
I have attached a sample test. Execute the sample test. You would get a print dialog. Check whether 'PrintToFile' option is selected. Click 'OK'. If a file dialog is shown, the bug is reproduced. Typically any unsupported attribute must be ignored by the print service not only at the time of printing but also when showing print dialogs.