如何在Silverlight应用程序中查找打印机 [英] How to find printer in silverlight application

查看:92
本文介绍了如何在Silverlight应用程序中查找打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用VS2010.我想使用Silverlight.我已经在Silverlight选项下进行了一个项目.我想搜索本地计算机上安装的所有打印机.
我正在尝试使用System.Management,但它给出了错误.


谁能帮我解决这个问题

在此先感谢
sanjeev.

Hello All,

I am using VS 2010. I want to use silverlight. i have taken one project under silverlight option. I want to search all the printer installed on the local machine.
I am trying to use System.Management but It is giving Error.


Can any one please help me out to sort this problem

Thanks in Advance
sanjeev.

推荐答案

SilverLight在浏览器中处于沙箱状态,因此您无权访问所有硬件以及大部分完整的.net库.

若要查看打印方式,请查看以下文章: Silverlight 4:打印功能
SilverLight is sandboxed in your browser so you do not have access to all your hardware, and most of the full .net library.

To see how to print, look the article : Silverlight 4: Printing Functionality


这篇关于如何在Silverlight应用程序中查找打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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