Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Printer Existence?

is there an API call to check for the existence of a print driver?
0
tylerd
Asked:
tylerd
  • 2
1 Solution
 
sruelCommented:
I don't know for API but you can try with the VB object called "Printer" by checking at "Printer.DeviceName".

0
 
mcriderCommented:
This will list the valid printer drivers and printers to the debug window:


Dim x As Printer
For Each x In Printers
    Debug.Print "Driver: " & x.DriverName & "    Printer:" & x.DeviceName
Next


Cheers!
0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now