Leadtools TWAIN (Leadtools.Twain assembly)
LEAD Technologies, Inc

SelectedSourceName Method

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()
 function Leadtools.Twain.TwainSession.SelectedSourceName()
public:
String^ SelectedSourceName(); 
Remarks
For more information, refer to Managing the TWAIN Source.
Example
 
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
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TwainSession Class
TwainSession Members
SelectedSourceName Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.