在没有打印对话框的 Silverlight 4 中打印 - 超出浏览器并提升信任度 [英] Printing in Silverlight 4 without Print Dialog - Out of Browser and elevated trust

查看:46
本文介绍了在没有打印对话框的 Silverlight 4 中打印 - 超出浏览器并提升信任度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果没有显示所有打印机的打印对话框,我如何在 Silverlight 4 中打印.

How can I print in Silverlight 4 without a print dialog showing all printers.

很多人说不可能,但当应用在网络浏览器中运行时,他们总是会说话.

Many people say it not possible but they always talk when the app is running in the web browser.

在这种情况下,我没有使用浏览器并且信任度更高.

In this case I'm out of browser and with elevated trust.

有什么建议吗?

推荐答案

即使信任度提高,您仍然需要使用打印 API 处理打印对话框.我知道有几个人在 Silverlight 中编写了 POS 系统,并使用 COM 互操作来处理直接打印到打印机的问题.由于您是 OOB 并且信任度较高,因此这可能是您需要研究的途径.

Even with elevated trust, you are still going to have to deal with the print dialog using the print API. I know a couple of people who have written POS systems in Silverlight and resorted to using COM interop to handle printing straight to a printer. Since you are OOB and in elevated trust, this might be a path for you to look into.

这篇关于在没有打印对话框的 Silverlight 4 中打印 - 超出浏览器并提升信任度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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