Contact us


All times are UTC - 8 hours



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


Joined: Sun Mar 08, 2015 11:36 pm
Posts: 2
I upgraded from 5.3 to 5.4. I'm utilizing the same code that worked fine in 5.3 however, if I attempt and scan multiple runs it stops working after the first run. (scan 10 pages then try and scan 10 more) It'll let me create the file but not scan any additional pages to the first set I scanned. Has something changed in the new version that I need to add? Here is the code I have been using: DynamicDotNetTwain1.IfDisableSourceAfterAcquire = True DynamicDotNetTwain1.IfShowUI = False DynamicDotNetTwain1.OpenSource() DynamicDotNetTwain1.PixelType = pixel DynamicDotNetTwain1.BitDepth = bitdepth DynamicDotNetTwain1.IfDuplexEnabled = duplex DynamicDotNetTwain1.Resolution = 200 DynamicDotNetTwain1.AcquireImage() Any Help would be greatly appreciated. Thanks


User avatar
Offline Profile  


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

Thanks for contacting Dynamsoft Support.

For the issue you encountered, please try the following:

1. Please call CloseSource() right before OpenSource() and see if it works.

DynamicDotNetTwain1.IfDisableSourceAfterAcquire = True
DynamicDotNetTwain1.IfShowUI = False
DynamicDotNetTwain1.CloseSource()
DynamicDotNetTwain1.OpenSource() 'Add this line
DynamicDotNetTwain1.PixelType = pixel
DynamicDotNetTwain1.BitDepth = bitdepth
DynamicDotNetTwain1.IfDuplexEnabled = duplex
DynamicDotNetTwain1.Resolution = 200
DynamicDotNetTwain1.AcquireImage()
DynamicDotNetTwain1.ErrorString 'Add this line

2. Please set IfScanInNewProgress to false after the control is loaded.

DynamicDotNetTwain1.ScanInNewProcess = false; 'Add this line

DynamicDotNetTwain1.IfDisableSourceAfterAcquire = True
DynamicDotNetTwain1.IfShowUI = False
DynamicDotNetTwain1.CloseSource()
DynamicDotNetTwain1.OpenSource() 'Add this line
DynamicDotNetTwain1.PixelType = pixel
DynamicDotNetTwain1.BitDepth = bitdepth
DynamicDotNetTwain1.IfDuplexEnabled = duplex
DynamicDotNetTwain1.Resolution = 200
DynamicDotNetTwain1.AcquireImage()
DynamicDotNetTwain1.ErrorString 'Add this line

Please try both and let me know if these solve the issue. If it still persists, please let me know the return value of ErrorString.

_________________
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