sentme_mail Posted January 27, 2006 Posted January 27, 2006 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 Quote
Administrators PlausiblyDamp Posted January 31, 2006 Administrators Posted January 31, 2006 Assuming you are using the WMI server explorer addin, something like 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
sentme_mail Posted January 31, 2006 Author Posted January 31, 2006 how about listing printers on a remote computer? do you have the code to do this? thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.