Sergej

Sergej

  • NA
  • 1
  • 0

How I can determine Remain of Toner?

Dec 27 2010 8:13 AM
Hi all!

Following code always return IsTonerLow as false, but Remain of Toner is low:

LocalPrintServer localPrintServer = new LocalPrintServer();
PrintQueueCollection localPrinterCollection = localPrintServer.GetPrintQueues();
IEnumerator localPrinterEnumerator = localPrinterCollection.GetEnumerator();
PrintQueue printQueue = null;
while (localPrinterEnumerator.MoveNext())
if (((PrintQueue)localPrinterEnumerator.Current).Name == "Samsung ML-2850 Series PCL6") 
printQueue = (PrintQueue)localPrinterEnumerator.Current;
bool isTonerLow = printQueue.IsTonerLow;