Click here to Skip to main content
11,479,162 members (62,810 online)
Rate this: bad
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 8:07am
joshrduncan2012 at 7-Dec-12 13:13pm
What have you done to accomplish this so far?
raja hassam zafar at 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
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:[^].

Rate this: bad
Please Sign up or sign in to vote.

Solution 3

There is an SNMP MIB RFC, that is targeting this topic:[^].
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.
Sergey Alexandrovich Kryukov at 8-Dec-12 0:15am
Interesting information, my 5.
Rate this: bad
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.
Sergey Alexandrovich Kryukov at 8-Dec-12 0:17am
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? :-)
Dave Kreskowiak at 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...
Sergey Alexandrovich Kryukov at 8-Dec-12 23:38pm
Of course... :-)

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 215
1 F-ES Sitecore 195
2 OriginalGriff 185
3 Frankie-C 120
4 DamithSL 85
0 Sergey Alexandrovich Kryukov 7,890
1 OriginalGriff 7,366
2 Sascha Lefèvre 3,064
3 Maciej Los 2,491
4 Richard Deeming 2,335

Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 7 Dec 2012
Copyright © CodeProject, 1999-2015
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