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;
|