Generate Managed Class

sentme_mail

Newcomer
Joined
Jan 22, 2004
Messages
6
hi,
in .Net i have used 'Generate Managed Class' to generate win32_printer.vb
how can i use this class to get all all the printer names on my computer?
thanks
 
Assuming you are using the WMI server explorer addin, something like
Visual Basic:
        Dim printers As ROOT.CIMV2.Printer.PrinterCollection
        printers = ROOT.CIMV2.Printer.GetInstances()

        For Each p As ROOT.CIMV2.Printer In printers

        Next
should allow you to loop over all installed printers.
 
Back
Top