Thanks (also to Jennifer) for the information. See my comments below
- there is no ServiceUIFactory available for any of my print services

Do you mean the serices returned to you by the JDK?
No, we don't currently support these on the services.
But the principle use for these is if you write your own print service,
its a way to add in its functionalitu to ServiceUI.printDialog(..)
without rewriting it.
What are you trying to do ?

I do not use any custom print services, only the ones returned from the
JDK. Basically I am trying to rebuild the cross platform service dialog
(the one that you create with
PrinterJob.printDialog(PrinterRequestAttributeSet a) ). I have to do
this because the user must be able to select "Print All"/"Print
Selection"/"Print Page Range", which does not seem to be possible with
the dialogs from the JDK. Creating this dialog is not that difficult,
but while doing this I noticed that the "Properties" button next to the
print service is always disabled on the JDK's print dialog. So I tried
to improve this for my dialog but found no way of doing this. So in one
sentence, I want the user to be able to open the printer's native dialog
when pressing on the properties button on my own print dialog. But how
do I get the printer's native dialog?


- setting Chromaticity to monochrome still produces color prints on our
color laser printer (and I can select color mode for our black and white
printer)

Not sure about this. Did you check if the service/driver
supported this option? It could be that it does not.


Yes, printService.isAttributeCategorySupported(Chromaticity.class)
returns true. But I am using Windows and as Jennifer wrote, some drivers
just ignore this. But if I can display the native printer dialog, this
wouldn't be needed.

- the PrintQuality attribute never seems to be supported

Is this Windows? On Windows the GDI DEVMODE struct interprets
a positive value in the dmPrintQuality as "X resolution" instead

quoting MSDN :
dmYResolution
    Specifies the y-resolution, in dots per inch, of the printer. If
the printer initializes this member, the dmPrintQuality member
specifies the x-resolution, in dots per inch, of the printer.

so you get resolution OR quality, never both.

Ok, so maybe I can find a way to make the user believe he/she selects
the print quality when acutally the resolution is set. But here too, the
printer's native dialog would fix this.


Thanks again for the detailed information.

Jan

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to