VintaSoft Twain .NET SDK 15.2: Документация для Веб разработчика
Vintasoft.Twain Namespace / WebTwainDeviceJS type / getSupportedEsclScanIntents Property
Синтаксис Exceptions Example Совместимость с браузерами Смотрите также
В этом разделе
    getSupportedEsclScanIntents Метод
    В этом разделе
    Возвращает имена поддерживаемых целей сканирования открытого устройства eSCL.
    Синтаксис
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: string[]
    value = instance.getSupportedEsclScanIntents();
    
    
    function getSupportedEsclScanIntents() : string[];
    

    Return Value

    Массив, содержащий имена поддерживаемых целей сканирования устройства eSCL.
    Исключения
    ИсключениеОписание
    Выбрасывается, если устройство не открыто ИЛИ возникает ошибка при получении значения возможностей устройства.
    Пример

    // Gets information about supported scan intents of opened eSCL device.
    function getSupportedEsclScanIntents(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 intents of eSCL device
            var esclScanIntents = esclDevice.getSupportedEsclScanIntents();
            console.log("Supported scan intents:");
            // for each supported scan intent
            for (var i = 0; i < esclScanIntents.length; i++) {
                // output information about scan intent
                console.log("- " + esclScanIntents[i]);
            }
        }
        catch (ex) {
            alert(ex);
        }
    }
    

    Совместимость с веб браузерами
    9
    Смотрите также