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.
 
Back
Top