list of network printers

Hello,

We have a printer server.

From my computer, i would like to have the list of printers installed in Printer Server.

Does in VB 2005 exist a function which give me that ? Or an API ?

Thanks,

Ben

[237 byte] By [Benyatwork] at [2007-12-23]
# 1

I think you may have to use WMI From the system.management namespace to get a list of network printers.

If I find some code ill be sure to post

take a look at this query and see if you can implement it in the System.Management objects in some way:

http://www.windowsitpro.com/Article/ArticleID/49225/49225.html

here is an example of using WMI in .NET

http://www.csharphelp.com/archives2/archive334.html

I understand it maybe in C# but not hard to convert to VB - if you need help with this part I am more than happy to help!

ahmedilyas at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...