Select source without GUI
Posted: Wed Dec 10, 2008 7:25 pm
Dear all
Is it possible to select a source base on the source list which will be returned with this source code?
As I understand
can just be used if a source has been selected with a GUI.
Could you please help?
Thanks,
Toan
Is it possible to select a source base on the source list which will be returned with this source code?
Code: Select all
int numberOfSources = _vsTwain.SourcesCount;
Console.WriteLine("displaySourceName(): Number of sources: {0}", numberOfSources);
for (int i=0; i<numberOfSources; i++)
{
Console.WriteLine("displaySourceName(): Source{0} --> name={1}", i, _vsTwain.GetSourceProductName(i));
}
Code: Select all
_vsTwain.SelectSource();
Could you please help?
Thanks,
Toan