For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > September 2004 > Listing current installed printers









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Listing current installed printers
RicardoFurtado

2004-09-15, 3:55 pm

I need to know how to get the installed printers to list them in my
application

Rick Rothstein

2004-09-15, 3:55 pm

> I need to know how to get the installed printers
> to list them in my application


You didn't say where you wanted to list them to. Assuming it is a
ListBox (named List1 for this example), give this code a try...

Dim prntr As Printer
For Each prntr In Printers
List1.AddItem prntr.DeviceName
Next

Rick - MVP

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com