423,116 Members | 1,784 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,116 IT Pros & Developers. It's quick & easy.

Printer Port Name

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello,

"Boris Bulit" <bu****@bellsouth.net> schrieb:
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.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.