C#
VB
C++
Gets the TWAIN version of the selected TWAIN source.
public TwainVersion SelectedSourceTwainVersion()
Public Function SelectedSourceTwainVersion() As Leadtools.Twain.TwainVersion
public:
Leadtools.Twain.TwainVersion SelectedSourceTwainVersion();
For more information, refer to Managing the TWAIN Source.
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();
}
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
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET