TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 2:57 pm




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Hitting Cancel button on the Scan progress dialog
PostPosted: Fri Mar 31, 2006 8:48 am 
Offline

Joined: Thu Feb 23, 2006 8:51 am
Posts: 4
Hi Robert/Catherine,
We're using the Dynamic Web TWAIN 4.2 for our ASP/SQL web application.
Our solution's based on your ASP example, using the files clsupload.asp, scan.asp, and imageupload.asp.

When a user hits the scan button, the control pops up a progress bar for the scanner. If the user hits cancel, the scanning operation is terminated.
However, if the user clicks the scan button again on the page, nothing happens.
Refreshing the page is the only way to make the Scan button work again.

Here's the javascript function for the Scan button:

function btnScan_onclick()
{
frmScan.DynamicWebTwain1.IfShowUI=0;
frmScan.DynamicWebTwain1.AcquireImage();
}

We're using the HP ScanJet 4850.

Any ideas?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 02, 2006 11:25 pm 
Offline
User avatar

Joined: Mon Mar 07, 2005 11:11 pm
Posts: 866
Quote:
function btnScan_onclick()
{
frmScan.DynamicWebTwain1.IfShowUI=0;
frmScan.DynamicWebTwain1.AcquireImage();
}


You need to close the current data source before acquiring images again.

Quote:
function btnScan_onclick()
{
frmScan.DynamicWebTwain1.CloseSource();
frmScan.DynamicWebTwain1.IfShowUI=0;
frmScan.DynamicWebTwain1.AcquireImage();
}


Thanks.

_________________
Robert
TWAIN Support Team
http://www.dynamsoft.com/
TWAIN ActiveX/Plug-in HTTP Control/SDK & TWAIN ActiveX Control, Scanner SDK, Component
Software Configuration Management | SCM Solution


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

It is currently Sun May 20, 2012 2:57 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog