Printer Port Name

  • Thread starter Thread starter Boris Bulit
  • Start date Start date
B

Boris Bulit

I need to get the printer driver and port name in vb.net.
I know how to get Printer Name of any printer on my system using the
PrinterSettings class but I am unable to find how to get the port name.

Thanks

Boris
 
Hello,

Boris Bulit said:
I need to get the printer driver and port name in vb.net.
I know how to get Printer Name of any printer on my
system using the PrinterSettings class but I am unable
to find how to get the port name.

You can use the WMI class 'Win32_Printer' and get its port name
('PortName' property). You will find samples for using WMI with VB.NET
on the web.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top