Imports Leadtools
Imports Leadtools.Twain
Public Sub GetCapabilityExample(ByVal parent As IWin32Window)
Dim session As TwainSession = New TwainSession()
session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None)
Dim twCap As TwainCapability
twCap = session.GetCapability(TwainCapabilityType.ImageUnits, TwainGetCapabilityMode.GetCurrent)
If twCap Is Nothing Then
MessageBox.Show("Error Getting Capability")
End If
session.Shutdown()
End Sub
using Leadtools;
using Leadtools.Twain;
public void GetCapabilityExample(IWin32Window parent)
{
TwainSession session = new TwainSession();
session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);
TwainCapability twCap;
twCap = session.GetCapability(TwainCapabilityType.ImageUnits, TwainGetCapabilityMode.GetCurrent);
if (twCap == null)
MessageBox.Show("Error Getting Capability");
session.Shutdown();
}