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

Windows - Java - Printer - PDF - Status Issue.

Pankaj .Patel
Greenhorn

Joined: Sep 21, 2010
Posts: 2
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
 
jQuery in Action, 2nd edition
 
subject: Windows - Java - Printer - PDF - Status Issue.