The leading provider of version control solution and TWAIN SDK

It continues with scanning after clicking Cancel button in Select Source dialog.

Symptom:

Sometimes, you may find the cancel button in Select Source dialog doesn't work properly. After clicking the Cancel button, it proceeds with scanning.

Solution:

Please try the following code to avoid the issue.

   function btnScan_onclick() {

          if (frmScan.DynamicWebTwain1.SelectSource()) {
              frmScan.DynamicWebTwain1.OpenSource();
              frmScan.DynamicWebTwain1.AcquireImage();
          }
          else {
              frmScan.DynamicWebTwain1.CloseSource();
                }
       }



Article Details

Last Updated
5th o August, 2011

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post a comment

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
* Enter the code below:
 

Continue