Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 Printer Availability

Status
Not open for further replies.

fingers

Programmer
Nov 17, 2000
17
0
0
Using VB6 on a standalone machine, how can I determine if a printer is connected to that machine? (I don't care if it's turned on or not, just if it's there)!
 
Code:
Dim prn As Printer

Debug.Print "you have " & Printers.Count & " printers"
For Each prn In Printers
  Debug.Print prn.DeviceName, prn.DriverName
Next prn
 
Actually, the above will return the number of printer drivers installed, not the number of actual printers. If anyone can show how to find the actual availability of printers using vb6 - and NOT causing an error (timeout in particular), I would very much like to know (I would prefer it includes network printers).


MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top