Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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, that's 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

Posted

Figured it out...

 

replace the line below with:

 

ScnImgs = DirectCast(ScnRoot.Children, CollectionClass)

 

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, that's 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...