PDA

View Full Version : Read Printer status from VBA



lia.domide
03-02-2011, 03:31 AM
Hello forum,

Having a generic application in VBA, how can I read the current status of a network printer?
Can I get or set the printer status (idle, printing, out-of-paper, ready..) via SNMP in VBA?
In witch version of VBA can I do that? What extra windows library I might use?

Any help/idea will be greatly appreciated.
Thank you in advance,
Lia.

Tinbendr
03-02-2011, 08:29 AM
Here's an article (http://pubs.logicalexpressions.com/pub0009/lpmarticle.asp?id=183) about that.

RonMcK
03-02-2011, 11:19 AM
Fascinating article, especially after reading the article he references on getting the names of all available printers. I see a wee project coming on. :clap: :thumb :cool: :beerchug:

Thanks,

lia.domide
03-02-2011, 01:18 PM
Thank you for the article. I tried it out and indeed it gives the status of the printer but only if it has a print job in queue.
I am wondering, is there a way of getting the printer status without sending a print job to the printer ?
I've read that is possible to query a physical printer status using SNMP. Is there a way to use SNMP protocol in VBA ?

Thanks