Imports Leadtools
Imports Leadtools.Twain
Public Sub SetVersionExample(parent As IntPtr, twainVersion As TwainVersion)
Dim session As New TwainSession()
Try
TwainSession.SetVersion(twainVersion)
session.Startup(parent, "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(IntPtr parent, TwainVersion twainVersion)
{
TwainSession session = new TwainSession();
try
{
TwainSession.SetVersion(twainVersion);
session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
session.Shutdown();
}