Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2004, 03:25 AM
Authorized User
 
Join Date: Dec 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in using Image controls

I want to give a scanning interface from my VB program. With VB 6.0 enterprise edition on windows 98, where the HP scanner is connected, I'm getting the controls as Kodak Image controls. It is a simple interface with the following code.
Three controls ImgEdit1,ImgScan1 & ImgAdmin1
 ImgScan1.Openscanner
 ImgScan1.StartScan
 ImgScan1.DestImageControl="ImgEdit1"
 ImgScan1.StopScan
 ImgScan1.CloseScanner
In the run mode, it just hangs without doing anything. Scanner is working perfectly.
 
Old March 5th, 2004, 02:34 PM
Registered User
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

The reason your program doesn't perform anything is that the moment it starts scanning, the StopScan method stops the scanning which is in progress. You should remove the StopScan and CloseScanner methods from the function and out them into dedicated handlers - e.g. the click event of a command button used to stop current scanning.

Also, I would suggest setting the DestImageControl value for the ImgScan1 control in design time.

You will find quite a lot of useful information related to Kodak Image Controls in this site:
http://www.ilixis.com/developer/kodak.html

There used to be a free reasonably complete sample vb project using the 4 Kodak Image Controls but you now have to pay a small fee for it. However, the paid version comes with an eBook on Kodak Image Controls.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Try it Out List Controls phage BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 September 15th, 2008 02:15 PM
FileUpload and Image controls fraperz ASP.NET 2.0 Professional 1 July 28th, 2007 04:59 AM
Problem with ActiveX controls bhavna VB How-To 0 February 22nd, 2007 07:47 AM
Picture box container controls save to image mujeeb General .NET 0 May 20th, 2006 03:46 AM
VB6 - PictureBox and Image controls Ole Jensen Beginning VB 6 3 July 14th, 2005 04:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.