php或javascript自动打印 [英] php or javascript Auto Print
本文介绍了php或javascript自动打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望我的应用程序直接打印到默认打印机,而不会出现Windows选择打印机对话框和
我真的不需要显示屏幕。所有用户想要的是打印输出,收据。
I want my application to print directly to the default printer without the Windows select printer dialog coming up and I really dont need to display the screen. All the user wants is a printout, receipt.
推荐答案
不,你不能这样做。
您只能使用javascript window.print()
并显示窗口。
No, you cannot do it.
You can only do window.print()
with javascript and it displays the window.
为什么你不能:因为安全。
Why you cannot: because safety.
这篇关于php或javascript自动打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文