wia

C# WIA Image Scanning fails with HRESULT: 0x80070050

大兔子大兔子 提交于 2019-12-20 03:32:34
问题 I'm hoping someone has come across this - I'm trying to capture images from a document scanner using WIA, however on random machines when attempting to transfer the image result - WIA reports "The file exists. - HRESULT: 0x80070050)". On All machines with this issue, initial use of the software was successful. I am able to connect successfully to the scanner, query for Name, Manufacturer,etc. I've determined that i can successfully scan an image, if i run the code under an alternative user

WIA Scanning via Feeder

元气小坏坏 提交于 2019-12-18 16:46:13
问题 WIA Scanning via Feeder Here is my device properties: Document Handling Select = 1 (2 is for flatbed, and 1 is for the feeder.) Here is my item (page) properties: Horizontal Resolution = 150 Vertical Resolution = 150 Horizontal Extent = 500 (I want to get it first to work, then I'll play with the extents.), Vertical Extent = 500 Bits Per Pixel = 8 Current Intent = 4 I got everything running smoothly if I set the "Document Handling Select" to "2". When I set it to "1", and ran it, just before

C# WIA with Automatic Document Feeder (ADF) retuns only one page on certain scanners

余生颓废 提交于 2019-12-18 05:03:53
问题 I have a HP Scanjet 7000 (duplex & ADF scanner) and a HP Scanjet 5500c (only ADF) and a scanner program I'm developing which uses WIA 2.0 on Windows 7. The problem is that the code works perfectly on the older scanner model, but on the newer one the code seems to run just fine through the first page, then fail on the second. If I step through the code around the following line; image = (WIA.ImageFile)wiaCommonDialog.ShowTransfer(item, wiaFormatTIFF, false); the old scanner stops and waits for

C# WIA with Automatic Document Feeder (ADF) retuns only one page on certain scanners

无人久伴 提交于 2019-12-18 05:03:51
问题 I have a HP Scanjet 7000 (duplex & ADF scanner) and a HP Scanjet 5500c (only ADF) and a scanner program I'm developing which uses WIA 2.0 on Windows 7. The problem is that the code works perfectly on the older scanner model, but on the newer one the code seems to run just fine through the first page, then fail on the second. If I step through the code around the following line; image = (WIA.ImageFile)wiaCommonDialog.ShowTransfer(item, wiaFormatTIFF, false); the old scanner stops and waits for

C# WIA with Automatic Document Feeder (ADF) retuns only one page on certain scanners

六眼飞鱼酱① 提交于 2019-12-18 05:03:45
问题 I have a HP Scanjet 7000 (duplex & ADF scanner) and a HP Scanjet 5500c (only ADF) and a scanner program I'm developing which uses WIA 2.0 on Windows 7. The problem is that the code works perfectly on the older scanner model, but on the newer one the code seems to run just fine through the first page, then fail on the second. If I step through the code around the following line; image = (WIA.ImageFile)wiaCommonDialog.ShowTransfer(item, wiaFormatTIFF, false); the old scanner stops and waits for

WIA 2.0 HP ScanJet 7650 specific problems

怎甘沉沦 提交于 2019-12-14 03:18:47
问题 I'm having WIA 2.0 problems on Windows 7. On windows XP with wia 2.0 (version from Windows 7 everything works ok) One device, HP ScanJet 7650 refuses to have its scanning resolution set to anything above 100. When I try to set either of WIA properties 6147 _ Horizontal Resolution 6148 _ Vertical Resolution to anything above 100 I get: A first chance exception of type 'System.ArgumentException' occurred Value does not fall within the expected range. After that, value of property is 850 (?) and

WPD equivalent of WIA DeviceDlg

落花浮王杯 提交于 2019-12-14 01:44:48
问题 I'm adding Windows Portable Devices (WPD) support to an app that currently uses Windows Image Acquisition (WIA). WIA provides a handy picture selection dialog via IWiaItem::DeviceDlg. I can't find a WPD equivalent. Is there one, and, if not, what is the preferred technique to allow users to select items? I don't have to write my own dialog, do I? 回答1: Response from MS: [T]here is no dedicated dialog for picture selection (outside of WIA). Instead, you should use the regular file open dialog

Camera Capture with WIA, C# and Win 7

喜你入骨 提交于 2019-12-14 00:36:58
问题 I try to take a picture from a webcam with WIA 2.0, C#, .net 4.0 on Windows 7. I tried many different samples, but nothing works. I always get this Exception: "ComException was unhandled" Exception from HRESULT: 0x80210015 ". The code is WIA_S_NO_DEVICE_AVAILABLE . I checked, if WIA-Service is running and if the cam shows up in Scanners and Camera. I have no idea whats wrong here! Can anybody help? Exception is thrown on this line: Device d = class1.ShowSelectDevice(WiaDeviceType

WIA versus WPD Digital Camera Image Acquisition and API

让人想犯罪 __ 提交于 2019-12-12 13:30:01
问题 We have a Windows Forms app running on XP that uses WIA to retrieve images from digital cameras attached to our company's field technician laptops. As clunky as the COM wrappers and APIs are, they've handled millions of images reliably. Looking now at inevitable migration to Win 7 and wondering if we should move from WIA to WPD (Windows Portable Devices) API. Does anyone have experience migrating from WIA to WPD? Or just working with WPD? Any pros or cons of staying WIA or going to WPD?

Set page size using WIA (with scanner)

五迷三道 提交于 2019-12-12 07:36:47
问题 I'm using WIA to acquire images from a scanner with C#. I can scan the papers, but I can't set up the page size correctly, it always defaults to A4 and I need to use Letter or Legal sometimes. I tried with the WIA_DPS_PAGE_SIZE property, but when I try to set a value, I always get an error, that the value is out of the interval (tried a lot of possible values). I wan't to be able to use WIA_DPS_PAGE_SIZE = WIA_PAGE_AUTO (for automatic page size), but I can't find anything on the web related