set_EsclScanInputSource Method
In This Topic
Sets the scan input source for eSCL device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var returnValue; // Type: any
// Parameters
var value; // Type: WebEsclScanInputSourceEnumJS
returnValue = instance.set_EsclScanInputSource(value);
function set_EsclScanInputSource(
: WebEsclScanInputSourceEnumJS
) : any;
Parameters
- value
- The scan input source for eSCL device.
Exceptions
Exception | Description |
| Thrown if device is not opened OR error occurs during setting value of device capability. |
Example
// Sets the scan input source of opened eSCL device.
function setEsclScanInputSource(esclDevice) {
try {
console.log("eSCL device: " + esclDevice.get_DeviceName());
// if eSCL device is not opened
if (!esclDevice.get_IsOpened()) {
console.log("Device is not opened. Please open device.");
return;
}
// set the ADF without duplex as the scan input source for eSCL device
esclDevice.set_EsclScanInputSource("FeederWithoutDuplex");
console.log("Scan input source: " + esclDevice.get_EsclScanInputSource());
}
catch (ex) {
alert(ex);
}
}
Browser Compatibility
See Also