如何查找打印机名称? [英] How to find printer name?

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

问题描述

hi


有没有办法找到我的EPSON TM-T81打印机的全名?我知道ip和端口。

i当我使用以下名称时,我的打印机不是fount。



1.TM-T81 5.00 ESC / POS-A

2.PosPrinter

3.EPSON TM-T81收据

4.EPSON TM-T81



怎么找?:(

谢谢..

hi
is there any way to find the full name of my EPSON TM-T81 printer? i know the ip and port.
i am getting printer not fount when i use the below names.

1.TM-T81 5.00 ESC/POS-A
2.PosPrinter
3.EPSON TM-T81 Receipt
4.EPSON TM-T81

How to find?:(
Thanks..

推荐答案

你可以在这里找到解决方案



使用C#和WMI以编程方式管理打印机 [ ^ ]



检查打印机是否已连接使用C>如何检查打印机是否已连接 [ ^ ]
You can find the solution here

Managing Printers Programatically using C# and WMI[^]

How to Check if your Printer is Connected, using C#[^]


你好,



你应该加上这个:

使用System.Drawing.Printing;



然后获得所有可用的打印机:



Hello,

you should add this :
using System.Drawing.Printing;

then to get all available printers :

List<string> allp = new List<string>();
              foreach (string printer in PrinterSettings.InstalledPrinters)
              {

                  allp.Add(printer);
              }


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

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