通過javax.print.*包,實作列印,發布到服務器上,客戶端訪問列印機功能,獲取客戶機列印機回傳為null;
PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();//此段回傳為null
在windows測驗是可以的,請問怎么回事?
相關的文章找了好多,沒有解決方案。
https://stackoverflow.com/questions/1016372/printservicelookup-lookupdefaultprintservice-returns-null
(這是網上的問題,但沒有完整的解決方法)
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/91834.html
標籤:Java相關
上一篇:Bug處理一則:Python中的Json和Unicode的恩怨情仇
下一篇:Python中的深淺copy
