File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Doubt on Java Print API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Doubt on Java Print API" Watch "Doubt on Java Print API" New topic
Author

Doubt on Java Print API

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Guys,

I'm quite unsure as to why the following program returns an array length of 0 for the PrintServiceLookup??



SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
David Sharpe
Ranch Hand

Joined: Jun 15, 2009
Posts: 32
I've never used javax.print, and so my post is more for learning than helping, sorry.

I see the API says "If no services match, the array is zero-length." Where does it look for these services? Does lookupDefaultPrintService return anything?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt on Java Print API
 
Similar Threads
Cannot get shared printers description
filenull problem
Facing problem in setting orientation.
Java Print service
Sending some text/image to the printer for printing