Contact us


All times are UTC - 8 hours



Post new topic Reply to topic  [ 2 posts ] 
Author Message
Offline Profile  


Joined: Fri Sep 25, 2015 11:04 am
Posts: 1
Hi, Im developing a Windows Form Application using scanners with ADF. However, whenever i scan 2 or more pages the application freezes (from 5 to 40 or more seconds depending on the number of pages).
Is there a way to fix this or improve the performance?

My code:

dynamicDotNetTwain2.OpenSource();
dynamicDotNetTwain2.IfShowUI = false;
dynamicDotNetTwain2.SelectSourceByIndex(source);
dynamicDotNetTwain2.IfFeederEnabled = true;
dynamicDotNetTwain2.IfAutoFeed = true;
dynamicDotNetTwain2.AcquireImage();
dynamicDotNetTwain2.SaveAllAsMultiPageTIFF(path);
dynamicDotNetTwain2.RemoveAllImages();
dynamicDotNetTwain2.CloseSource();

Thnks in advance.


User avatar
Offline Profile  


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1691
Hi Mgm9200,

Thanks for contacting Dynamsoft Technical Sales Team.

I tried to test with our online demo (please start it by double-click on the Dynamic .NET TWAIN SDK.exe and find the one called Scan documents in Winforms Apps) and it takes only a few seconds to scan and save. Could you also have a try and let me know how it works?

By the way, I think the right order of the codes can be
Code:
dynamicDotNetTwain2.SelectSourceByIndex(source);
dynamicDotNetTwain2.OpenSource();
dynamicDotNetTwain2.IfShowUI = false;
dynamicDotNetTwain2.IfFeederEnabled = true;
dynamicDotNetTwain2.IfAutoFeed = true;
dynamicDotNetTwain2.AcquireImage();
dynamicDotNetTwain2.SaveAllAsMultiPageTIFF(path);
dynamicDotNetTwain2.RemoveAllImages();
dynamicDotNetTwain2.CloseSource();


If you would like to save the scanned pages immediately after the scan finishes, please check OnPostAllTransfers event.

Please let me know if my advice works.

Regards,

_________________
Vincy
Dynamsoft Support Team
Follow us@Twitter, Facebook


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ]  Moderators: Michael, Vincy


Who is online

Users browsing this forum: No registered users and 1 guest


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:
cron
Copyright © 2016 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team