挂件打印错误 [英] Catch printing error
本文介绍了挂件打印错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我直接打印而不打开打印对话框.
一切正常,但问题是在打印时是否有任何错误,我无法捕捉到该错误.
我已经尝试过Window.onbeforeerror和onaftererror
并尝试捕获
但没有用....
请在此帮助我
我确定有解决此问题的方法,或者有一个变量告诉我无法打印
在此先感谢
varun
Hi ,
I am giving a direct print without opening a print dialog box.
Every thing is working fine,but the thing is if there is any error while printing I am not able to catch the error.
I have tried Window.onbeforeerror and onaftererror
and try catch
but of no use....
kindly help me in this
I am sure there is some solution for this problem or a variable which tells me unable to print
Thanks in advance
varun
推荐答案
我们可以做的一件事是,
我们可以拥有一个日志文件,并且可以在代码中捕获异常消息并将其写入日志文件.
One thing what we can do for it is,
we can have a log file and we can catch the exception message in the code and write it into log file.
这篇关于挂件打印错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文