Visual Basic .net Scanning

ehelin

Well-known member
Joined
Oct 11, 2005
Messages
48
Hi:

We are using the WIALIB set of classes/libraries to capture images from our scanner. My question is, does anyone know how to bypass the GUI dialog? For example, in one of the code samples at the code project, the following line prompts the user with the GUI dialog inherit to the scanner being used (or at least, thats how I interpret it).

(C#)
wiaPics = wiaRoot.GetItemsFromUI( WiaFlag.SingleImage, WiaIntent.ImageTypeColor ) as CollectionClass;
if( wiaPics == null )
return;

There are two other possible methods associated with this object...Transfer() and TakePicture(). Neither seem to apply to the scanner.

The entire project is at http://www.codeproject.com/dotnet/wiascriptingdotnet.asp.

Any thoughts would be appreciated.

Thanks!

Eric
ehelin@texasmedclinic.com
 
Figured it out...

replace the line below with:

ScnImgs = DirectCast(ScnRoot.Children, CollectionClass)

ehelin said:
Hi:

We are using the WIALIB set of classes/libraries to capture images from our scanner. My question is, does anyone know how to bypass the GUI dialog? For example, in one of the code samples at the code project, the following line prompts the user with the GUI dialog inherit to the scanner being used (or at least, thats how I interpret it).

(C#)
wiaPics = wiaRoot.GetItemsFromUI( WiaFlag.SingleImage, WiaIntent.ImageTypeColor ) as CollectionClass;
if( wiaPics == null )
return;

There are two other possible methods associated with this object...Transfer() and TakePicture(). Neither seem to apply to the scanner.

The entire project is at http://www.codeproject.com/dotnet/wiascriptingdotnet.asp.

Any thoughts would be appreciated.

Thanks!

Eric
ehelin@texasmedclinic.com
 
Back
Top