0

Need a help. I don't know how to use PrinterStateReason to giving printer. we can call PrinterStateReason in this way

PrinterStateReason pr =PrinterStateReason.OUTPUT_AREA_FULL;

but I want to check the state of a giving printer is it possible with PrinterStateReason?

example :

PrintService[] pservices =PrintServiceLookup.lookupPrintServices(null, null);
log.info("Printer Attrbute"+ pservices .getAttributes().toArray());

this will list down all print which are available in the giving network. I don't know how to use PrinterStateReason in the same way?

4

0 回答 0