• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

Windows - Java - Printer - PDF - Status Issue.

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

Objective: To design a program which prints almost 18k PDF Files, in a one shot using java program in background with all the possible status of Print.
: It's good, if program can select tray if the one in use is gone empty.
: Program should store status of give Print -> Successful, Queued, Tray is empty, any kind of logical message.
: If possible, implement in Java Only, no other technology, open-free program, no licenced program.

I have written/assemebled one program with the help of other sites. Using this i can print PDF file, but i am not getting proper/exact status.
Issue in the below Program:
1) When i executed program, in a milliseconds i received system log, that it's completed. After few seconds, printing get started. So basically my intention is, only after the print get completed, i should have ack that now it's successful. As per java, i had implemented PrintJobListener.. However printJobCompleted() is not being called.
2) I pull out all the blank paper from the printer and then given print, then also i received successful print status. Once i see, status on printer screen it was queued up. In this perticular, expectation from the program is to return queued status.

If anybody has faced and solved such issue, please share your knowledge.


printDataTransferCompleted. -> 106
printJobNoMoreEvents. -> 105
attrName: queued-job-count
attrValue: 0
attrName: printer-is-accepting-jobs
attrValue: accepting-jobs
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic