В этом разделе
Устанавливает цель сканирования для устройства eSCL.
Синтаксис
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var returnValue; // Type: any
// Parameters
var value; // Type: string
returnValue = instance.set_EsclScanIntent(value);
function set_EsclScanIntent(
: string
) : any;
Parameters
- value
- Цель сканирования для устройства eSCL.
Исключения
Исключение | Описание |
| Выбрасывается, если устройство не открыто ИЛИ возникает ошибка при настройке значения возможностей устройства. |
Пример
// Sets scan intent of opened eSCL device.
function setEsclScanIntent(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 'Document' intent as the scan intent for eSCL device
esclDevice.set_EsclScanIntent("Document");
console.log("Scan intent: " + esclDevice.get_EsclScanIntent());
}
catch (ex) {
alert(ex);
}
}
Совместимость с веб браузерами
Смотрите также