Error processing SSI file
Leadtools TWAIN (Leadtools.Twain assembly)

Show in webframe

SelectedSourceTwainVersion Method






Gets the TWAIN version of the selected TWAIN source.
Syntax
public TwainVersion SelectedSourceTwainVersion()
'Declaration
 
Public Function SelectedSourceTwainVersion() As TwainVersion
'Usage
 
Dim instance As TwainSession
Dim value As TwainVersion
 
value = instance.SelectedSourceTwainVersion()
public:
TwainVersion SelectedSourceTwainVersion(); 
Remarks
For more information, refer to Managing the TWAIN Source.
Example
Copy Code  
Imports Leadtools
Imports Leadtools.Twain

Public Sub SelectedSourceTwainVersionExample(ByVal parent As IntPtr)
   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.SelectedSourceTwainVersion())
   session.Shutdown()
End Sub
using Leadtools;
using Leadtools.Twain;

public void SelectedSourceTwainVersionExample(IntPtr 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.SelectedSourceTwainVersion());
   session.Shutdown();
}
Requirements

Target Platforms

See Also

Reference

TwainSession Class
TwainSession Members
SelectedSourceName Method
QuerySourceInformation Method

Error processing SSI file