|
-
Nov 12th, 1999, 09:58 AM
#1
Thread Starter
Fanatic Member
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.
-
Nov 12th, 1999, 11:41 AM
#2
You can Enumerate the Printers Collection, eg.
Code:
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
[email protected]
[email protected]
-
Nov 12th, 1999, 11:43 AM
#3
Thread Starter
Fanatic Member
Thanks Aaron!!!!
------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|