我们可以连接到我们网络中的打印机吗? [英] can we connect to the printers in us network ?

查看:101
本文介绍了我们可以连接到我们网络中的打印机吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用中,我需要获取网络中的打印机列表,然后选择要打印的打印机之一,这是怎么做的?非常感谢

In my app, I need take a list of printer in my network and select one of printers to print, how do this ? thanks so much

推荐答案

使用以下代码获取已安装的打印机列表

use the below code to get the installed printers list

private void Form1_Load (object sender, System.EventArgs e)
{
foreach (String printer in PrinterSettings.InstalledPrinters)
{
printersList.Items.Add (printer.ToString());
}
}



**之前,您必须从添加打印机向导手动添加网络打印机.



** before that you have to manually add the network printer from add printer wizard.


这篇关于我们可以连接到我们网络中的打印机吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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