Printing in Silverlight 4 without Print Dialog - Out of Browser and elevated trust

蹲街弑〆低调 提交于 2019-12-24 01:53:39

问题


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.

Any suggestions?


回答1:


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.




回答2:


I have seen an article:

http://www.codeproject.com/KB/silverlight/SilverlightSilentPrinting.aspx

May be this could help

Thanks, FP




回答3:


Silverlight 5 now has another (elevated-only) overload of the Print method that doesn't show the dialog.



来源:https://stackoverflow.com/questions/6927093/printing-in-silverlight-4-without-print-dialog-out-of-browser-and-elevated-tru

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!