The leading provider of version control solution and TWAIN SDK

Why do I only get the first image into Dynamic Web TWAIN although multiple documents have been scanned through ADF?

Symptom:

You may find only the first image is held in buffer after you scan multiple images by using ADF.

Cause:

The source is closed after the first transfer ends.

Resolution:

You can follow the steps below to solve the problem:

1. Please check if the CloseSource method or the CloseSourceManage method is called in the OnPostTransfer event. If yes, please comment it out.

2. Use the IfDisableSourceAfterAcquire property before the AcquireImage method or use the DisableSource method in the OnPostTransfer event to disable the source.
Click here for more information about the difference between "close source" and "disable soure" (TWAIN state transition).

Code:

function btnScan_onclick()
{
   frmScan.DynamicWebTwain1.SelectSource();
   frmScan.DynamicWebTwain1.OpenSource(); 
   frmScan.DynamicWebTwain1.MaxImagesInBuffer = 4;

   frmScan.DynamicWebTwain1.IfDisableSourceAfterAcquire = true;
   //disable data source

   frmScan.DynamicWebTwain1.AcquireImage();
}

 
Reference:

CloseSource  IfDisableSourceAfterAcquire  DisableSource



Article Details

Last Updated
7th o November, 2008

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

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