简体   繁体   English

如何在Java中获取网络打印机的墨水量

[英]How to get ink level of network printer in java

I'm trying to find a way to get the ink level of a printer in java. 我正在尝试找到一种方法来获取java中打印机的墨水量。

My task is to: 我的任务是:

  • Get info from the network printer 从网络打印机获取信息
  • Getting the ink level property from that printer info. 从该打印机信息获取墨水量属性。

I don't think any generic solution exists for this. 我认为不存在任何通用解决方案。 Only the printer driver can report the details like the ink level. 只有打印机驱动程序才能报告详细信息,例如墨水量。 Either find out the driver details and driver API for talking to printer OR use printer's wire protocol to talk to it for querying the ink level. 查找用于与打印机通信的驱动程序详细信息和驱动程序API,或者使用打印机的有线协议与之通信以查询墨水量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM