Page 1 of 1

Select source without GUI

Posted: Wed Dec 10, 2008 7:25 pm
by ctn
Dear all

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));
			}
As I understand

Code: Select all

_vsTwain.SelectSource(); 
can just be used if a source has been selected with a GUI.
Could you please help?
Thanks,
Toan

Re: Select source without GUI

Posted: Wed Dec 10, 2008 9:56 pm
by Alex
Hello Toan,

Please read this FAQ: http://www.vintasoft.com/vstwain-dotnet ... eSelection

Best regards, Alexander