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 : Sunday, March 2, 2008 11:38:01 PM(UTC)
YiannakosK

Groups: Registered
Posts: 1


We have a workstation with more than one scanner attached.
We want to be able to programmatically change the selected scanner within the application without asking the user to choose.

We are calling the .SelectSource() method.
Although at runtime it seems as if SelectedSourceName has changed, in reality it remains set to whichever source was used last. This becomes clear during scanning but also if you open the Twain driver select dialog (ex. DialogResult dlgres = _twainSession.SelectSource(String.Empty)) which states the currently selected driver as its default selection.

I am attaching the code we are using

Any help will be appreciated

Thanks
Kostas
 

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 : Monday, March 3, 2008 5:34:34 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

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


Kostas,


The post has not attachment. This could happen if you use the Preview button before submitting.




In any case, if you pass a
valid Twain source name to the SelectSource method, this Twain source will be used with subsequent LEADTOOLS Twain function calls.


However, please keep the following in mind:




1. This only works for the
current LEADTOOLS Twain session. It does not affect the global Twain source
manager, and it does not stay the same source if you end the session and begin a new Twain session.


2. This does NOT change the source selected in the
Twain Select Source dialog. The dialog shown by SelectSource is from the Twain source manager, not from LEADTOOLS. This means we cannot control it.

 
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.056 seconds.