wia

WIA 2.0 Duplex scanning

坚强是说给别人听的谎言 提交于 2019-12-04 11:16:11
Since Vista, Windows is shipped with WIA 2.0 (wiaaut.dll). According to the following KB article and many of my findings on various forums, duplex scanning is no longer possible using WIA 2.0. Yet, the article mentions the use of native WIA 2.0, what would make duplex scanning possible. ( https://support.microsoft.com/en-us/kb/2709992 ) According to the WIA 2.0 documentation ( https://msdn.microsoft.com/en-us/library/windows/desktop/ms630196(v=vs.85).aspx ), duplex scanning is possible but using the new WIA_IPS_DOCUMENT_HANDLING_SELECT (3088) property. My issues are: I have no idea how to use

Detect all available scanner resolutions using WIA

☆樱花仙子☆ 提交于 2019-12-04 10:57:21
How can I programmatically detect all available resolutions (in dpi) for a specified scanner using WIA 2.0? What about page sizes supported? Any ideas? Pseudo code: Assume you have device info, connect to it: var device = deviceInfo.Connect(); if device is not null….. then you can get the Item Note that items begin at index 1 for device items Item item = device.Items[1]; An Item has various properties which you can enumerate e.g. foreach (Property prop in item.Properties) { var temp = prop.Name + " " + prop.PropertyID + " " + prop.get_Value(); } In this case to find Maximum DPI supported by

Failed to create an object instance for the specified ProgID (WIA.CommonDialog)

末鹿安然 提交于 2019-12-04 04:43:47
问题 We are trying to allow users to scan documents using a Silverlight XAP running in-browser with elevated trust, from a remote server, and are getting the following error: Unhandled Error in Silverlight Application Failed to create an object instance for the specified ProgID. The failure is at the following line: Dim CommonDialog = AutomationFactory.CreateObject("WIA.CommonDialog") Application.Current.HasElevatedPermissions and AutomationFactory.IsAvailable both return True. I can successfully

Alternatives to WPD/WIA on Windows XP?

非 Y 不嫁゛ 提交于 2019-12-03 16:27:00
WPD does not work correctly on Windows XP (SP1 if that matters), even if Microsoft states it does . Problem with WPD: IPortableDeviceManager.GetDevices call does not find any devices on Win XP while it finds all connected cameras on Windows 7. A few other people had this same problem with WPD not working on XP, no solution: 1 2 I have decided to reimplement the functionality using WIA. Problem with WIA automation/WIA interfaces: WIA automation offers only silly dialogs when interacting with the camera - I need to rather do this from code Programming against WIA interfaces is recommended to

WIA Automation for scanner color intent is not working

眉间皱痕 提交于 2019-12-03 13:51:39
I cannot get my Canon Pixma MP150 to scan a color scan from c# code. The following code is resulting in a black and white image, or if I change the value of 6146 to 2 then a grayscale image is created. I would like to be able to have a color scan from code. I know the scanner does color images because I can do one through the xp wizard in "scanners and camera". Can anyone help me figure out what value I am not setting for a color scan. All documentation and examples I can find just say to change the value of 6146. Thank you for taking the time to read this! private void ScanAndSaveOnePage () {

Set page size using WIA (with scanner)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 06:56:32
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 to this. Does anyone know a solution? thanks! Piotr Justyna I know this is probably too late to actually

WIA Scanning issues on XP

无人久伴 提交于 2019-12-02 14:53:11
问题 I have a WPF application that I am using to scan documents to a users mailbox etc. When debugging the application on my 32bit Windows 7 professional machine all goes according to plan, as well as the deployed version on another 32bit Windows 7 machine. When I deploy to a XP machine and try to start a scan I get the following error: Retrieving the COM class factory for component with CLSID {850D1D11-70F3-4BE5-9A11-77AA6B2BB201} failed due to the following error: 80040154 Class not registered

WIA Scanning issues on XP

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 08:25:23
I have a WPF application that I am using to scan documents to a users mailbox etc. When debugging the application on my 32bit Windows 7 professional machine all goes according to plan, as well as the deployed version on another 32bit Windows 7 machine. When I deploy to a XP machine and try to start a scan I get the following error: Retrieving the COM class factory for component with CLSID {850D1D11-70F3-4BE5-9A11-77AA6B2BB201} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). Any suggestions? The win 7 version does not

C# WIA Image Scanning fails with HRESULT: 0x80070050

☆樱花仙子☆ 提交于 2019-12-02 01:05:36
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 account (Using right-click run as administrator). However, running the code under the same user account

TWAIN/WIA implementation for JAVA [closed]

眉间皱痕 提交于 2019-11-30 19:54:16
I am working on an application(Java Applet) that interacts with scanner. I understand I need a Twain library or WIA library to make it work in windows. But I am not sure what are the differences of two? I am trying to use this library: http://thorntonzone.com/manuals/Compression/Fax,%20IBM%20MMR/MMSC/mmsc/uk/co/mmscomputing/device/twain/index.html JAR file link is broken so I got it from here. http://rsbweb.nih.gov/ij/plugins/twain-scan.html And DLLs from here: http://sourceforge.net/projects/twain-dsm/?source=dlp But, it does not detect the source. Here is the error log: http://pastebin.com