从C#WebBrowser静默打印 [英] Print Silently from C# WebBrowser
本文介绍了从C#WebBrowser静默打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用asp.net创建销售点系统。生成的HTML将包装在C#WebBrowser中。在交易结束时,有一个javascript函数可以打印收据
$(窗口).print()。
I am creating a point of sale system using asp.net. The generated HTML will be wrapped in a C# WebBrowser. At the end of the transaction there is a javascript function to print the receipt $(window).print().
问题是显示了一个对话框。如何以静默方式打印?
The issue is that a dialog box is showing. How can I print silently?
推荐答案
我认为浏览器中的JavaScript不允许以静默方式打印。
I don't think JavaScript in the browser is allowed to print silently.
您是否尝试过使用WebBrowser控件进行打印?
Have you tried printing from the WebBrowser control?
David
这篇关于从C#WebBrowser静默打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文