Arie
Getting printer status August 02, 2010 09:47PM |
pclLps is LocalPrintServer dynamic pclLps = new LocalPrintServer pclEnu is IEnumerator dynamic PcliEnumObject is PrintQueueCollection dynamic PcliEnumObject = pclLps:GetPrintQueues() pclEnu = PcliEnumObject:GetEnumerator() bOK is boolean = pclEnu:MoveNext() pq is PrintQueue dynamic WHILE bOK pq = pclEnu:Current Trace(pq:FullName,pq:NumberOfJobs,pq:HasPaperProblem,pq:IsDoorOpened,pq:IsNotAvailable,pq:IsOffline,pq:IsInError,pq:IsPaperJammed,pq:IsOutOfPaper,pq:NeedUserIntervention,pq:IsTonerLow) bOK = pclEnu:MoveNext() END