getSupportedEsclScanInputSources Method
In This Topic
Returns supported scan input sources of opened eSCL device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: Vintasoft.Twain.WebEsclScanInputSourceEnumJS[]
value = instance.getSupportedEsclScanInputSources();
function getSupportedEsclScanInputSources() : WebEsclScanInputSourceEnumJS[];
Return Value
An array that contains supported scan input sources of eSCL device.
Exceptions
Exception | Description |
| Thrown if device is not opened OR error occurs during getting value of device capability. |
Example
// Gets information about supported scan sources of opened eSCL device.
function getSupportedEsclScanInputSources(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;
}
// get information about supported scan input sources of eSCL device
var esclScanInputSources = esclDevice.getSupportedEsclScanInputSources();
console.log("Supported scan input sources:");
// for each supported scan input source
for (var i = 0; i < esclScanInputSources.length; i++) {
// output information about scan input source
console.log("- " + esclScanInputSources[i]);
}
}
catch (ex) {
alert(ex);
}
}
Browser Compatibility
See Also