Solved

Printer Existence?

Posted on 2000-02-23
3
158 Views
Last Modified: 2011-09-20
is there an API call to check for the existence of a print driver?
0
Comment
Question by:tylerd
  • 2
3 Comments
 

Expert Comment

by:sruel
Comment Utility
I don't know for API but you can try with the VB object called "Printer" by checking at "Printer.DeviceName".

0
 
LVL 14

Accepted Solution

by:
mcrider earned 50 total points
Comment Utility
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
 
LVL 14

Expert Comment

by:mcrider
Comment Utility
Thanks for the points! Glad I could help!


Cheers!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now