get_EsclScanInputSource Метод
В этом разделе
Возвращает источник сканирования для устройства eSCL.
Синтаксис
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: Vintasoft.Twain.WebEsclScanInputSourceEnumJS
value = instance.get_EsclScanInputSource();
Return Value
Источник сканирования для устройства eSCL.
Исключения
Исключение | Описание |
| Выбрасывается, если устройство не открыто ИЛИ возникает ошибка при получении значения возможностей устройства. |
Пример
// Gets name of scan input source of opened eSCL device.
function getEsclScanInputSource(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;
}
console.log("Scan input source: " + esclDevice.get_EsclScanInputSource());
}
catch (ex) {
alert(ex);
}
}
Совместимость с веб браузерами
Смотрите также