Specifies the capabiltiy to be negotiated. This is a runtime property.
Enumerated value / Integer
ObjectName. Capability
Prior to negotiating capability, OpenSource() needs to be called to make Dynamic (Web) TWAIN ready for capability negotiation.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.
How to Negotiate Capability with Different Capability Container Types, CapGet(), CapGetCurrent(), CapGetDefault(), CapReset(), CapSet(), CapType Property, OpenSource()
VB Sample:
Twain.OpenSource Twain.Capability = ICAP_UNITS Twain.CapType = TWON_ONEVALUE Twain.CapValue = 0 'TWUN_INCHES If Twain.CapSet = True Then MsgBox "Successful." Else MsgBox "Failed." + vbCrLf + Twain.ErrorString, vbCritical + vbOKOnly End If |
JavaScript Sample:
|