Imports Leadtools
Imports Leadtools.Twain
Public Sub SetVersionExample(ByVal twainVersion As TwainVersion)
Dim session As TwainSession = New TwainSession()
Try
TwainSession.SetVersion(twainVersion)
session.Startup(Nothing, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
session.Shutdown()
End Sub
using Leadtools;
using Leadtools.Twain;
public void SetVersionExample(TwainVersion twainVersion)
{
TwainSession session = new TwainSession();
try
{
TwainSession.SetVersion(twainVersion);
session.Startup(null, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
session.Shutdown();
}