Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

Capability Property

Description

Specifies the capabiltiy to be negotiated. This is a runtime property.

Data type

Enumerated value / Integer

Syntax

ObjectName. Capability 

Remarks

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.

See also

How to Negotiate Capability with Different Capability Container Types,  CapGet(), CapGetCurrent(), CapGetDefault(), CapReset(), CapSet(), CapType Property, OpenSource() 

Samples

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:
frmSample.WebTwain.OpenSource();

frmSample.WebTwain.Capability = 0x0102;    //ICAP_BRIGHTNESS 
frmSample.WebTwain.CapType = 5;            //TWON_ONEVALUE
frmSample.WebTwain.CapValue = 0;           //TWUN_INCHES

if (frmSample.WebTwain1.CapSet() == true)
   alert("Successful.");
else
   alert(frmSample.WebTwain1.ErrorString); 

 

 

 













TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2011 Dynamsoft Corporation. All Rights Reserved.