Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

How to Identify the default printer's port is parallel port or usb port using c# code
Posted

1 solution

Use WMI. Win32_Printer[^] class has PortName property.
Som other lecture in this topic: Managing Printers Programatically using C# and WMI[^]
 
Share this answer
 
Comments
Jackson K T 24-Aug-15 7:35am    
Thanks Zoltán Zörgő...
Zoltán Zörgő 26-Aug-15 14:44pm    
Any progress?
Jackson K T 27-Aug-15 9:05am    
Working on it
Zoltán Zörgő 27-Aug-15 9:34am    
Well, if my answer helped you in the right direction, please upvote and accept it formally.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900