Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, July 24, 2018 12:08:07 PM(UTC)

andyr  
andyr

Groups: Registered
Posts: 13


Leadtools V20 I seem to be seeing a situation where L_IsTwainAvailable() fails if the last selected twain device is old. Even though there are multiple twain devices installed on the PC.
If the first one encountered is pre V1.9 the program including the twain sample project fails like there are non installed. Then if I select another through ScandAll 21 then the L_IsTwainAvailable() returns true.
Is this expected behavior? Has another else run into this?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, July 24, 2018 1:09:11 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

Was thanked: 28 time(s) in 28 post(s)

Hello Andrew,

I emailed you a few minutes ago with this information, but it might be helpful to someone else who seems this thread. I have come across this issue myself, and the cause appears to be your default Twain device being offline. If you launch a program such as Twacker (or for 64-bit), and select an online scanner as the default, the SDK should properly recognize all the devices. I believe another alternative is to explicitly set the Twain version before using any functionality (such as the L_IsTwainAvailable method):

C: L_TwainSetVersion
C++: LTwain::SetVersion
.NET: TwainSession.SetVersion

For more information about setting the Twain version, refer to the following documentation page:
https://www.leadtools.com/help/leadtools/v20/dh/to/setting-which-twain-specification-version-to-use.html

Thanks,
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.053 seconds.