Is there a way to find the below properties from the printer ?
Printer is installed or not Printer is connected or not Paper out or any error
I used javax.print API
, this help me to print a documents in the printer and it list down 4 attributes
printer-is-accepting-jobs: accepting-jobs
printer-name: myPrinter
queued-job-count: 0
color-supported: not-supported
But I don't know how to get the above peroperties from the printer API. I found that there is something called PrinterStateReason, But I don't know how to get the PrinterStateReason
for my printer. I have tried getting it from the attributeset. But I couldn't.
Please help me on the above issues
Use javax.print. For details look here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.