Click here to Skip to main content
12,350,723 members (30,011 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ C# Java
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.
Posted 7-Dec-12 7:07am
Comments
joshrduncan2012 7-Dec-12 13:13pm
   
What have you done to accomplish this so far?
raja hassam zafar 7-Dec-12 13:37pm
   
i have been searching for some idea or help but did not find any thing related. we can check it by going in to control panel > printer option > settings > services.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  
Comments
   
Interesting information, my 5.
--SA
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
   
Good point, my 5.
(I would be really curious to know the logic of the one who voted 3: what, if this person dislikes what you say, printers should get aware of their ink levels and report it to the OS, shouldn't they? :-)
--SA
Dave Kreskowiak 8-Dec-12 0:44am
   
I don't care if here votes me down or not. It won't magically make printers suddenly aware of exactly how much ink is left...
   
Of course... :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160621.1 | Last Updated 7 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100