问题
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