Java读取打印机列表
Java读取打印机列表
//查找所有打印服务
PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
System.out.println("*****从配置文件读取的打印机型号*****");
System.out.println(services.length);
System.out.println("**********");
Java读取默认打印机
PrintService printer = PrintServiceLookup.lookupDefaultPrintService();