wia

Using C#/WIA version 2.0 on Vista to Scan

I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a problem. In each and every one of them, the reference to WIALib is broken. When I go to add...

WIA Twain support C#

How can I use WIA and Twain in C#? The TWIAIN/C# example found at http://www.codeproject.com/KB/dotnet/twaindotnet.aspx Throws an exception at line 59 on TwainLib.cs "an attempt was made to load a program with an incorrect format." on Vista 64. I would use WIA but it does not have support for all of the devices I want to use. Is there ...

In WIA, How can I add my program in the program list of acquiring images from a digital camera?

When I connect my digital camera with my computer, a dialog box containing all the registered programs can be used to get images from the camera will appear. Now I want to add my own program in the list, so that when I click the item of my program, I can use my own program to get images from the digital camera. Thank you very much! ...

WPD equivalent of WIA DeviceDlg

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 dia...

How do I get an image from a WIA camera?

I installed the sample driver for a WIA camera. I don't know how to get an image from it. What should I do? ...

WIA.DeviceManager.DeviceInfos.Count = 0. Why?

I'm trying to identify the scanners attached to the computer. One of the possible solutions is to use WIA (Windows Image Acquisition Automation Library). These were my actions so far: Download wiaaut.dll Copy it to system32 Register it with "regsvr32 wiaaut.dll" (successfully) Add reference to my project in Visual Studio.NET Check tha...

How to develop using WIA 1 under Vista?

I'm using VS2008 SP1 under Vista SP1. My .Net-program uses a COM reference to WIA (Microsoft Windows Image Acquisition Library v2.0). I'm using CommonDialogClass.ShowAcquireImage to scan a document and it's working fine. One of my customers is running XP. As I understand WIA, under XP you have to use WIALib (WIA 1.0). Is it possible to d...

Safari problems accessing Windows Integrated Authentication (aka NTLM) protected web site

Hi all, Our web application uses Windows Integrated Authentication (aka NTLM Auth) for security. It's working fine for both IE and Firefox users, but Safari users are seeing intermittent problems. Browsing the site will work fine, but every once in a while there will be problems loading elements of a page (e.g. CSS or JS files). Relo...

Windows image acquisition - setting device properties in C#

I have a C# (WinForm) program that supports scanning using WIA. I am trying to set device properties before scanning one or more documents. Primarily I want to set the paper size for the scanner. Following is a snippet of the code: foreach (Property property in selectedDevice.Properties) { //WiaProperties.WiaDpsHorizontalBedSize is ...

Can autoplay and WIA be programatically reset to the default of "Ask me?"?

I have code that ads both Autoplay and WIA handlers for reading images files from memory cards and digital cameras, respectively, and it works fine. However, I'd like to reset the Autoplay and WIA handlers to the default of "Ask me what to do every time" the first time my application is run. Why? Because if the user has the handlers s...

WIA through web browser - ASP.NET

I am wondering what would be the best/preferred way to write a scanning app that lives in a web browser. The basic idea is I want to use a web page from where I can click a button which will scan a document on the client and upload that document to server. The first thought that came to mind is write a native (C++?) browser plug-in. Howe...

WIA Automation for scanner color intent is not working

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 i...

Scanning notification through WIA

I've registered to receive WIA notifications for all devices through RegisterEventCallbackInterface for WIA_EVENT_DEVICE_CONNECTED and WIA_EVENT_SCAN_IMAGE events. However I only receive notifications when scanner device is plugged in - I don't receive notification when I scan (for example with mspaint which uses WIA). Am I supposed to r...

How do I get an VIDEO from a WIA camera?

Hy, I'm developing small app in C# 3.5 for winXP that will automatically download images and video from camera to pc, on camera plug-in via usb. I have canon ixus 50 camera and i figure out how to get images from that camera to pc, but I just can't figure it out how to get/download avi format videos, can someone help me pls. Its true th...

Should I store the WIA Device or just the WIA Device ID in a C# application?

I'm working with a C# WIA application and it seems that I have two ways of accessing the WIA device 1) store the object after the initial call to Select Device or 2) store the device's id and use the manager to access the device only when I need it. I'm assuming that I can keep hold of the device object for as long as I want but I'm u...

WIA versus WPD Digital Camera Image Acquisition and API

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 ...

WIA, Vista, and VB6. Does this code work?

Basically the constraints here are that i must use WIA because i am trying to get my scanner software to work in Windows 7 and Vista. It would be preferable (like really preferable) if i could do this in VB6. Now this code i have compiles and everything, however when i run it i get the error "No WIA device of the selected type is availa...

Error in WIA Scanning IMage on IIS Project

i made web application to scan pages from scanner and worked well but when i made the project on IIS it is not work well and get me this problem Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the c...

Set page size using WIA (with scanner)

Hello, 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 (...

how to loop through WIA acquired image?

hello guys, i found some basic techniques around the web to acquire an image from a scanner using the WIA dll, all i want now is to know how can i loop through the result, the showacquireimage method returns only 1 image (or vector).. thank you, best regards, ...