ehelin Posted October 11, 2005 Posted October 11, 2005 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 Quote
ehelin Posted October 11, 2005 Author Posted October 11, 2005 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.