Solved

Printer Existence?

Posted on 2000-02-23
3
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Expert Comment

by:sruel
ID: 2551758
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
ID: 2555313
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
ID: 2556647
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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