PDA

Click to See Complete Forum and Search --> : Printers


QWERTY
Nov 12th, 1999, 08:58 AM
Here is my problem: I want to add all installed printers to a combo. I know how to add current printer but how to add all of them??
Thanks in advance

------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.

Aaron Young
Nov 12th, 1999, 10:41 AM
You can Enumerate the Printers Collection, eg.

Private Sub Form_Load()
Dim oPRN As Printer
For Each oPRN In Printers
Combo1.AddItem oPRN.DeviceName
Next
Combo1 = Printer.DeviceName
End Sub



------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

QWERTY
Nov 12th, 1999, 10:43 AM
Thanks Aaron!!!!

------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.