Select source without GUI

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
ctn
Posts: 1
Joined: Wed Dec 10, 2008 7:23 pm

Select source without GUI

Post by ctn » 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?

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

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Select source without GUI

Post by Alex » Wed Dec 10, 2008 9:56 pm

Hello Toan,

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

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests