Accusoft.TwainPro9.ActiveX
Set Advanced Capabilities

The TWAIN specification defines advanced capabilities of the Data Source. The advanced capabilities are enumerated in TP_AdvancedCapability.

Prior to initiating a Scanning Session, the application may specify values for advanced capabilities. To set advanced capabilities, first set the Capability property to use advanced capabilities (TP_Capability_UseCapAdvanced), then specify the specific advanced capability by setting the CapAdvanced property.

VB Example
Copy Code
' This code demonstrates how to set an advanced capability
TwainPRO1.Capability = TP_Capability_UseCapAdvanced
TwainPRO1.CapAdvanced = ICAP_BARCODEDETECTIONENABLED
If (TwainPRO1.CapSupported) Then
TwainPRO1.CapTypeOut = TWON_ONEVALUE
TwainPRO1.CapValueOut = 1
TwainPRO1.SetCapOut
End If  

 

See Also

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback