直接从网页打印 [英] Printing directly from Web page
本文介绍了直接从网页打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从网页直接打印到打印机时,我需要一些帮助.
单击按钮/链接应直接将打印内容发送到默认打印机.
I need some help in printing directly to a printer from a web page.
The click of a button / link should directly fire the print to the default printer.
Is there a way to set it that if a default printer is not set up the system will prompt the user to set it up?
推荐答案
您可以使用javascript代码来设置它,如果未设置默认打印机,系统将提示用户进行设置.启动打印过程
window.print();
这将显示打印"对话框并选择默认打印机.
You can use javascript code to initiate the printing process
window.print();
That will bring the print dialog and select the default printer.
这篇关于直接从网页打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文