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

    Parameters

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

    // Sets the scan input source of opened eSCL device.
    function setEsclScanInputSource(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 ADF without duplex as the scan input source for eSCL device
            esclDevice.set_EsclScanInputSource("FeederWithoutDuplex");
            console.log("Scan input source: " + esclDevice.get_EsclScanInputSource());
        }
        catch (ex) {
            alert(ex);
        }
    }
    

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