В этом разделе
Возвращает цель сканирования для устройства WIA/eSCL.
Синтаксис
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: string
value = instance.get_ScanIntent();
function get_ScanIntent() : string;
Return Value
Цель сканирования для устройства WIA/eSCL.
Исключения
| Исключение | Описание |
| Выбрасывается, если устройство не открыто ИЛИ возникает ошибка при получении значения возможностей устройства. |
Пример
// Gets name of scan intent of opened WIA/eSCL device.
function getScanIntent(device) {
try {
console.log("Device: " + device.get_DeviceName());
// if device is not opened
if (!device.get_IsOpened()) {
console.log("Device is not opened. Please open device.");
return;
}
console.log("Scan intent: " + device.get_ScanIntent());
}
catch (ex) {
alert(ex);
}
}
Совместимость с веб браузерами
Смотрите также