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

    Return Value

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

    // 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);
        }
    }
    

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