• 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

Windows - Java - Printer - PDF - Status Issue.

 
Greenhorn
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.

Program:



Output:
printDataTransferCompleted. -> 106
printJobNoMoreEvents. -> 105
attrName: queued-job-count
attrValue: 0
attrName: printer-is-accepting-jobs
attrValue: accepting-jobs
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic