![]() ![]() I have tried a couple of different scanners (Canon 5000F, Benq 5250C), but same problem. I have plugged in other devices (Digital SLR) and the above code can 'see' them, so the code is working.ĭoes anyone have any suggestions as to what is going wrong and how to fix it? ![]() ![]() ) kicks the following error when run:įrom what I can tell, this usually means your device is unplugged/not turned on or the device is not WIA compatible.īut the scanner in question shows up in Control Panel/Scanners and Cameras (means it's WIA compatible) and works when accessed via Photoshop (means it's turned on). Here is the section of code: //Choose ScannerĬommonDialogClass class1 = new CommonDialogClass() ĭevice d = class1.ShowSelectDevice(WiaDeviceType.UnspecifiedDeviceType, true, false) Ĭomplies fine but line 2 ( Device d =. The 'Microsoft Windows Image Acquisition Library v2.0' dll has been referenced in the VS project and I have included 'using WIA ' at the top of the page. However, I have been unable to get WIA to 'see' my scanner. I know there are plenty of SDKs out there that do this (Accusoft, ByteScout, Knowledge Lake, etc) but we wanted some control over the UI (or lack of) and the ability to customize the processing and handling of the images, which is why we're trying the WIA angle. I'm trying to use WIA (Microsoft Windows Image Acquisition Library v2.0) to build a C# 3.5 WinForms app in VS2008 running on a Vista rig to aquire images from a scanner.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |