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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting printer 1

Status
Not open for further replies.

daimaou

Programmer
Apr 4, 2001
154
PT
I'm trying to get a list of all the current instaled printers on my computer and then fill a combo box with it (Or do I have any control that gives me this automatically?).

I'm not sure on how to get this list of the printers(I know I'll have to use the printers collection, but not sure how...) if anyone can help I'd appreciate.
 
The Printers is a collection of Printer objects. You can enumerate it through it like this:

Code:
Dim oPrinter as Printer
For Each oPrinter in Printers
  ctlList.AddItem oPrinter.DeviceName
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top