Solved

Printer Existence?

Posted on 2000-02-23
3
165 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

729 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