aspose file tools*
The moose likes Java in General and the fly likes print file - printJobNoMoreEvents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "print file - printJobNoMoreEvents" Watch "print file - printJobNoMoreEvents" New topic
Author

print file - printJobNoMoreEvents

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
I have this code




The problem is, the only two events it seems to detect is printDataTransferCompleted() and printJobNoMoreEvents(). It could not detect the other remaining events even (even if my printer dont have any paper for example).

I made the test for 2 different printer with the same results:
- a virtual printer (PDFCreator)
- a Ricoh Aficio GX 3000

Am I doing anything wrong?

Thanks for your help

regards.
[ November 12, 2008: Message edited by: Paulo Carvalho ]
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Paulo,

Just a quick admin tip, you can edit your original post to UseCodeTags


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
done.

Help needed!
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I've personally never used those APIs, does the Javadoc mention anything about the range of support these methods offer? I imagine they are supporting some sort of standard Printer API behind the scenes and perhaps your test printers aren't supported correctly.
Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
Hi.

Thanks for your answer.

I have read the java API and I didn't found any mention on compatibilities/incompatibilities with specific printers...

regards.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4543
    
    5

Just another cross poster
http://forums.sun.com/thread.jspa?threadID=5347440
http://www.java-forums.org/advanced-java/13266-listener-print-job.html


luck, db
There are no new questions, but there may be new answers.
Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
Yes, these posts are mine
[ November 14, 2008: Message edited by: Paulo Carvalho ]
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi Paulo,

It's totally OK to cross post to other sites, but in future if you could let us know, see BeForthrightWhenCrossPostingToOtherSites for details.

I'm asking around my day job to try and find a solution, this is an interesting one!
Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57
Ok, thanks. Sorry I didn't know.

Yes, I think it is a very interesting problem. I saw 2 or 3 posts on the web with exactly the same error but with no solution (at least there were no solution posted).

I am looking to find out if the problem comes from the printer, the printer driver, the printer configuration or something else.
Jeffrey Barrus
Greenhorn

Joined: Sep 01, 2009
Posts: 1
Has anyone found a solution to this yet?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Paulo certainly hasn't since he hasn't been active for months. http://faq.javaranch.com/java/DontWakeTheZombies


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: print file - printJobNoMoreEvents