Leadtools TWAIN (Leadtools.Twain assembly)

SelectedSourceName Method

Show in webframe
Example 





Gets the name of the selected TWAIN source. This name is provided by the manufacturer.
Syntax
public string SelectedSourceName()
'Declaration
 
Public Function SelectedSourceName() As String
'Usage
 
Dim instance As TwainSession
Dim value As String
 
value = instance.SelectedSourceName()

            

            
public:
String^ SelectedSourceName(); 
Remarks
For more information, refer to Managing the TWAIN Source.
Example
Copy Code  
Imports Leadtools
Imports Leadtools.Twain

Public Sub SelectedSourceNameExample(ByVal parent As IWin32Window)
   Dim session As TwainSession = New TwainSession()
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None)

   ' Twain data source name is case-sensitive
   session.SelectSource("TWAIN_32 Sample Source")
   MessageBox.Show(session.SelectedSourceName())
   session.Shutdown()
End Sub
using Leadtools;
using Leadtools.Twain;

public void SelectedSourceNameExample(IWin32Window parent)
{
   TwainSession session = new TwainSession();
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);

   // Twain data source name is case-sensitive
   session.SelectSource("TWAIN_32 Sample Source");
   MessageBox.Show(session.SelectedSourceName());
   session.Shutdown();
}
Requirements

Target Platforms

See Also

Reference

TwainSession Class
TwainSession Members
SelectedSourceName Method

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.