J
Jim Hubbard
Does anyone know how to see if a USB printer is actually attached to a WIN2k
or XP machine.
I am using vba, vb or perhaps vb.ney if needed.....
I tried using the GetPrinter API
Private Declare Function GetPrinter Lib "winspool.drv" _
Alias "GetPrinterA" (ByVal hPrinter As Long, _
ByVal Level As Long, pPrinter As Any, _
ByVal cbBuf As Long, pcbNeeded As Long) As Long
followed this example
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=183
The problem is the Printers are always "Ready" status even if they are
disconnected.
I know it must be capable, as the icon will dim out when you unplug it.....
Help......
Jim
or XP machine.
I am using vba, vb or perhaps vb.ney if needed.....
I tried using the GetPrinter API
Private Declare Function GetPrinter Lib "winspool.drv" _
Alias "GetPrinterA" (ByVal hPrinter As Long, _
ByVal Level As Long, pPrinter As Any, _
ByVal cbBuf As Long, pcbNeeded As Long) As Long
followed this example
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=183
The problem is the Printers are always "Ready" status even if they are
disconnected.
I know it must be capable, as the icon will dim out when you unplug it.....
Help......
Jim