Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to find print services  RSS feed

Romain Bisse
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What i'm trying to do should be quite simple: I have to print text on some printers, using JPS and the javax.print.* API's.

I've found examples about how to set attributes, how to query printers about a DocFlavor etc.

The problem i'm facing is:

If I specify any attribute, such as MediaSizeName, or even copies number, the PrintServiceLookup returns no service able to meet these requirements.
Idem with any DocFlavor different than DocFlavor.INPUT_STREAM.AUTOSENSE;

I'm not the only one in this situation, according to this thread

I have several printers attached to the computer. Some of them provide a very wide range of printing options.
I'm using jdk 1.4.2_05 on Windows 2000 by the way.

If you have some clue about this issue, please let me know!

Thanks in advance.
[ October 27, 2005: Message edited by: Romain Bisse ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!