How to enumerate a network printer in Metro Apps
-
Wednesday, April 25, 2012 10:21 AM
Hi,
I have enumerated the printer devices in my Metro App using the Windows.Devices.Enumeration namespace.
How can I enumerate a printer connected in the network, and obtain its IP Address.
Regards
_Sujith
All Replies
-
Thursday, April 26, 2012 4:30 AMModerator
_Sujith,
I will look into this for you.
Best Wishes - Eric
-
Thursday, April 26, 2012 6:41 PMModerator
_Sujith,
You can enumerate a network connected printer if it is installed. For the IP address, depending on how things are connected, there may be properties obtainable from http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.enumeration.pnp.pnpobject.findallasync.aspx.
Best Wishes - Eric- Edited by Eric Hanson-MSFTMicrosoft Employee, Moderator Thursday, April 26, 2012 6:41 PM
-
Friday, April 27, 2012 3:45 AM
Thanks Eric,
We can enumerate the installed network printers by using Windows.Devices.Enumeration.Pnp namespace. But I need to enumerate the printers connected in the same network, actually they are not installed in to my PC. I have to discover and enumerate them. How can I ?
Is there any alternate mechanisms available to discover devices in Metro Apps ?
-
Monday, May 07, 2012 9:51 PMModerator
This is not a supported scenario. The user will need to install the printers using the Add Devices UI. In a home scenario the printers auto install without any user action.
Best Wishes - Eric
- Marked As Answer by Eric Hanson-MSFTMicrosoft Employee, Moderator Wednesday, May 09, 2012 6:04 PM


