Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get the printers connected physically to the computer
Posted
Comments
Zoltán Zörgő 27-Dec-12 15:41pm    
Any progress?

1 solution

You can use WMI, to get all printers[^]. The Port and the Local properties can be useful to find the locally connected printers. And here is a quick sample, how to list them: http://include.wutils.com/wmi/ROOT%5CCIMV2/CIM_ManagedSystemElement/CIM_LogicalElement/CIM_LogicalDevice/CIM_Printer/Win32_Printer/cs-samples.html[^], you need just to refine the query.
 
Share this answer
 

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