0
Answer

How I can determine Remain of Toner?

Sergej

Sergej

14y
2.3k
1
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;