H
Harry Simpson
I'm trying to grab printer status for a printer with WMI
I got a mo("PrinterState").tostring of "128" for a paused HP printer. What
is "128" equate to? It did give a mo("PrinterStatus").tostring of 1 =
"paused" which was correct but it took a while to display the correct state.
When I un-paused the printer, I got a mo("PrinterState").tostring of "0".
What is "0" equate to? It got a mo("PrinterStatus").tostring of 0. Is "0"
mean ok, ready?
Anyone had experience in correctly grabbing info from WMI?
I'm getting info but not consistent info and i don't know how to translate
the codes since they don't match up with the ones in the WMI SDK.
Any clues as how to effectively use
Management.ManagementObjectSearcher("Select * from Win32_Printer")
to get accurate info on networked printers within a domain?
TIA
Harry
I got a mo("PrinterState").tostring of "128" for a paused HP printer. What
is "128" equate to? It did give a mo("PrinterStatus").tostring of 1 =
"paused" which was correct but it took a while to display the correct state.
When I un-paused the printer, I got a mo("PrinterState").tostring of "0".
What is "0" equate to? It got a mo("PrinterStatus").tostring of 0. Is "0"
mean ok, ready?
Anyone had experience in correctly grabbing info from WMI?
I'm getting info but not consistent info and i don't know how to translate
the codes since they don't match up with the ones in the WMI SDK.
Any clues as how to effectively use
Management.ManagementObjectSearcher("Select * from Win32_Printer")
to get accurate info on networked printers within a domain?
TIA
Harry