See Also Examples Applies To
Changes the current value of a twain capability.
Syntax
object.TwainSetCapCurrentString (nCap, nItemType, sNewValue)
The TwainSetCapCurrentString syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nCap | Required. Long A TWAIN Capability constant. |
| nItemType |
Required. Long A TWAIN Item Type constant. This value can be get using the TWAINGetCapItemType(nCap). |
| sNewValue | Required. String. New value to set to the selected twain capability. |
Returns
Boolean. True if Success else False: Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN)
To get the TWAIN state, use the TwainGetState() method.
Category
TWAIN Capability
Visual Basic Sample
To set the ORDERED halftone mode :
bSuccess = object.TwainSetCapCurrentString(ICAP_HALFTONES, object.TwainGetCapItemType(ICAP_HALFTONES), "ORDERED")