Error scanning with WIA

G

Guest

Hey
I have a function in a class library that I'm using to help scan checks in using WIA scripting objects. Last night it worked fine on one computer, but here at my office computer I'm getting an exception thrown: "Exception from HRESULT: 0x80210007." Anyone know what could be causing this? Is it a problem with my code, or is it a scanner driver problem

Thanks
Ben Coats
 
J

james

What OS is that computer using? If it is not Windows 2000 or later, WIA
will not work correctly. And Win2K needs to have service pack2 installed
before it works correctly there. I have been using a VB.NET code sample(the
one I posted the link to here) in a simple image app. that I wrote. And it
works fine in Win2K, WindowsXP. Here is a link to the original C# code that
the person who posted the VB.NET code converted from:

http://www.codeproject.com/dotnet/twaindotnet.asp?target=Twain

There is another Article on CodeProject that deals with WIA and Scripting
that might help you too. Just do a search for TWAIN and that should get you
going.
james


Ben Coats said:
Hey,
I have a function in a class library that I'm using to help scan checks in
using WIA scripting objects. Last night it worked fine on one computer, but
here at my office computer I'm getting an exception thrown: "Exception from
HRESULT: 0x80210007." Anyone know what could be causing this? Is it a
problem with my code, or is it a scanner driver problem?
 
J

james

Sorry for the second response. It does not pay to not read other's posts
completely without one's brain fully engaged!
Your are correct. WIA only works on XP & ME. The code I posted a link to is
for TWAIN support
for the OS's I mentioned. Strange though, that it would work on XP and not
Win2K too. The code I linked to works with the Twain drivers and allows
using the scanner's software interface or customzing your own UI to do
scanning. I use the default settings to use the scanner's interface. Much
better for the user to see something they are used to.
I do apologize for posting incorrect information.
james
 
S

Simon Verona

No problems, I just thought it worthwhile the clarification!

WIA seems to have replaced the old Kodak supplied code that existed in
versions of Windows prior to ME (including Win2k). Microsoft seem to be
pushing it hard for scanner/camera manufacturers too.. I don't know if it's
a replacement for TWAIN or just a wrapper around it?

Regards
Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top