识别打印机的端口类型 [英] Identify port type of printer

查看:139
本文介绍了识别打印机的端口类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



如何识别默认打印机的端口是并行端口或usb端口使用c#code

Hello,

How to Identify the default printer's port is parallel port or usb port using c# code

推荐答案

使用WMI。 Win32_Printer [ ^ ]类有 PortName property。

Som本主题的其他讲座:使用C#和WMI以编程方式管理打印机 [ ^ ]
Use WMI. Win32_Printer[^] class has PortName property.
Som other lecture in this topic: Managing Printers Programatically using C# and WMI[^]


这篇关于识别打印机的端口类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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