LEADTOOLS Support
Imaging
Imaging SDK Questions
Prgrammaticaly select scanner source (without using the GUI)
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, March 2, 2008 11:38:01 PM(UTC)
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
#2
Posted
:
Monday, March 3, 2008 5:34:34 AM(UTC)
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.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Prgrammaticaly select scanner source (without using the GUI)
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.