如何通过打印机名称获取打印机信息? [英] How can I get a printer information by printer name?
本文介绍了如何通过打印机名称获取打印机信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用这些代码我可以获得打印机名称,
但是如何获得打印机的其他信息
例如:页面大小,NumberUp,侧面,........
use these code I can get the printer name,
but how can I get the printer other inforamtion
for example : page size,NumberUp,sides,........
public static void main(String[] args) {
PrintService[] services = PrinterJob.lookupPrintServices();
for(PrintService service:services){
System.out.println(service.getName());
}
}
谢谢!!!
thanks!!!
推荐答案
开始 ^ ]
这篇关于如何通过打印机名称获取打印机信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文