javax.print.PrintException:打印机不接受作业 [英] javax.print.PrintException: Printer is not accepting job

查看:197
本文介绍了javax.print.PrintException:打印机不接受作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试执行时,我收到javax.print.PrintException:打印机不接受作业."

I am getting the "javax.print.PrintException: Printer is not accepting job.", when I try to execute

printService.createPrintJob().print(
                    new SimpleDoc(this,
                            DocFlavor.SERVICE_FORMATTED.PRINTABLE,
                            docAttributeSet),
                    printRequestAttributeSet);

我看到此问题发生在一台机器打印到打印机上,但另一台机器能够使用相同的 API 调用打印到同一台打印机.我正在查看来自 Oracle Sun 的错误报告,解释了下面粘贴的类似问题.http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6525150

I am seeing this problem happening for one machine printing to the printer but the other machine is able to print to the same printer using the same API call. I was looking at bug report from Oracle Sun explaining similar problem which is pasted below. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6525150

但是那里提到的解决方法都没有为我解决问题.任何帮助表示赞赏.

But none of the workarounds mentioned there is fixing the problem for me. Any help is appreciated.

推荐答案

删除并添加打印机修复了作为变通方法的错误中提到的问题.它对我有用.

Removing and adding the printer fixes the problem as mentioned in the bug as a workaround. It worked for me.

这篇关于javax.print.PrintException:打印机不接受作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆