Answered 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 AM
    Moderator
     
     

    _Sujith,

    I will look into this for you.

    Best Wishes - Eric

  • Thursday, April 26, 2012 6:41 PM
    Moderator
     
     

    _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
  • 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 PM
    Moderator
     
     Answered

    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