如何检测在Delphi中的打印机型号? [英] How to detect the printer model in Delphi?

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

问题描述

当我插入我的HP LaserJet 3015,Windows检测到正确的模型,然后尝试安装相应的驱动程序。

When I plug my HP Laserjet 3015, Windows detects the correct model and then tries to install the appropriate drivers.

我如何检测连接的打印机的型号( S)?我不希望使用已安装的打印机列表中,因为斑马打印机可以用通用/文本仅驱动程序进行安装。

How can I detect the model of connected printer(s)? I don't want to use the list of installed printers because a Zebra printer can be installed with a Generic/Text only driver.

我是一个Delphi和C#程序员,所以在任何语言的任何提示,将不胜感激。

I'm a Delphi and C# programmer, so any tips in any language will be appreciated.

推荐答案

您可以发送

~HI

要Zebra打印机和它应该返回其型号也固件版本

to the Zebra printer and it should return its model number and also fw version

这篇关于如何检测在Delphi中的打印机型号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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