
Print something like e.g "WIA Canoscan 4400F"Ĭonsole.WriteLine(_Value()) Then just iterate over the device manager to list the devices: // Create a DeviceManager instanceįor (int i = 1 i <= i++) As first step, you need to import the WIA component in your code at the top of your class: using WIA To list the devices, you need to retrieve the list from the DevicesManager object of WIA. Now you will be able to use WIA in your project. Select the WIA reference and look for the Embed Interop Types option in the Properties panel and set this value to False:

With Visual Studio go to the Solution Explorer and select your project, then in your project click on References from the tree view component and search for WIA. Now you need to set the Embed Interop Types property of the WIA component to False.

Once you click ok, the reference will be added to your project. In the emergent window, select the COM option in the left menu and search for the Microsoft Windows Image Acquisition Library v2.0 and click on OK. Go to the solution explorer located in the top right corner of Visual Studio and do right click on your project, then click on Add > Reference. A Component Object Model (COM) is a platform-independent, distributed, object-oriented system for creating binary software components that can interact.NET components can call and interact with COM components. Then proceed to reference the Windows Image Acquisition COM component directly from visual studio. NET framework version (or an old C# project). Add the WIA referenceĬreate a new WinForms project with the latest.

Maintaining image properties across data transfers.Acquiring device data by using standard and high performance transfer mechanisms.Querying properties of devices in a standard and expandable manner.Creating connections to multiple devices simultaneously.Enumeration of available image acquisition devices (installed scanners in Windows).The API set exposes imaging applications to still image acquisition hardware functionality by providing support for: WIA makes easy to application developers, device manufacturers, and scanner users who need to interact with imaging hardware. In order to work with the scanner in WinForms with C# in Visual Studio, we are going to use the WIA API. Windows Image Acquisition (WIA) sometimes also called Windows Imaging Architecture) is a Microsoft driver model and application programming interface (API) for Microsoft Windows 2000 and later operating systems that enables graphics software to communicate with imaging hardware such as scanners, digital cameras and Digital Video-equipment.
