Click here to Skip to main content
16,016,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to develop a remote image scanning service in c#. when i call the following function, it returns only 2 WIA devices (scanners). But my system (xp) is having 4 WIA devices installed, including 2 wireless scanners (one Brother and one Samsung scx 3200w wireless scanners). when i try to acquire image using other app like photoshop, it shows all 4 devices. pl help- Thanks
XML
public static List<string> GetDevices()
{
    List<string> devices = new List<string>();
    WIA.DeviceManager manager = new WIA.DeviceManager() ;

    foreach (WIA.DeviceInfo info in manager.DeviceInfos)
    {
        devices.Add(info.DeviceID);
    }

    return devices;
}
Posted

1 solution

First, in order for a devie to be seen by WIA, it needs to have WIA compatible drivers installed. If not, WIA won't see it.

Second, Photoshop doesn't use WIA.
 
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