我想让打印机墨水水平 [英] i want to get printers ink level

查看:80
本文介绍了我想让打印机墨水水平的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理需要跟踪打印的应用程序,我想知道墨水量,以便我可以知道墨水是否低于所需的限制,因此我可以生成警报。

解决方案

我认为你不能在一般情况下这样做,因为这不是任何公共接口的功能。

Microsoft支持告诉我们:

Windows中没有通用方法来检查墨水量,因为它因打印机而异。

请参阅:http://windows.microsoft.com/en-US/windows-vista/Check-ink-打印机级别 [ ^ ]。



-SA


< blockquote>有一个针对该主题的SNMP MIB RFC: http://tools.ietf.org/html/rfc3805 [ ^ ]。

但是,正如其他人所提到的,实际上并没有通用的方法来获取这些信息,因为即使在高端,SNMP的可管理性也远非普遍楷模。那些低成本打印机及其驱动程序实际上可以提醒用户,正在使用专有方法来做到这一点。但这些接口不公开。即使驱动程序能够显示墨水状态,外部应用程序也很可能无法做到这一点。

针对企业(如HP)的制造商也并非总是使用SNMP,但他们可能会为您提供管理打印机资产的工具 - 如果您使用他们的打印机。


大多数打印机甚至不知道他们的墨水量是多少。它是是的,有墨水或没有墨水。在任何地方或类似的地方通常都没有剩余30%的价值。


i am working on an application that need to keep track of prints, i want to know the ink level so i can know if the ink is below the required limit so i can generate an alert.

解决方案

I don''t think you can do it in general case, because this is not a feature of any public interface.

Microsoft support tells us:

There is no universal method in Windows to check ink levels because it varies by printer.

Please see: http://windows.microsoft.com/en-US/windows-vista/Check-ink-levels-on-a-printer[^].

—SA


There is an SNMP MIB RFC, that is targeting this topic: http://tools.ietf.org/html/rfc3805[^].
But, as the others mentioned, there is no actually universal method to get such information, since SNMP manageability is far from being common, even at the high-end models. Those "low cost" printers and their drivers that can actually alert the user, are using proprietary methods to do that. But these interfaces are not public. Even if the driver is capable of displaying ink status, an external application most likely won''t be able to do the same.
Manufacturers targeting enterprises (like HP), are also not always using SNMP, but they might give you tools to manage your printer assets - if you use their printers.


Most printers don''t even know what their ink levels are. It''s either "Yes, there''s ink" or "there''s no ink". There usually isn''t a "30% remaining" value anywhere or anything like that.


这篇关于我想让打印机墨水水平的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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