• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

print file - printJobNoMoreEvents

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
done.

Help needed!
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, these posts are mine
[ November 14, 2008: Message edited by: Paulo Carvalho ]
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Has anyone found a solution to this yet?
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Paulo certainly hasn't since he hasn't been active for months. http://faq.javaranch.com/java/DontWakeTheZombies
 
reply
    Bookmark Topic Watch Topic
  • New Topic