This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

print file - printJobNoMoreEvents

 
Paulo Carvalho
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paulo,

Just a quick admin tip, you can edit your original post to UseCodeTags
 
Paulo Carvalho
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
done.

Help needed!
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just another cross poster
http://forums.sun.com/thread.jspa?threadID=5347440
http://www.java-forums.org/advanced-java/13266-listener-print-job.html
 
Paulo Carvalho
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, these posts are mine
[ November 14, 2008: Message edited by: Paulo Carvalho ]
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone found a solution to this yet?
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paulo certainly hasn't since he hasn't been active for months. http://faq.javaranch.com/java/DontWakeTheZombies
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic