VintaSoft Twain .NET SDK 15.2: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / get_EsclScanInputSource Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    get_EsclScanInputSource Method
    In This Topic
    Gets the scan input source for eSCL device.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: Vintasoft.Twain.WebEsclScanInputSourceEnumJS
    value = instance.get_EsclScanInputSource();
    
    
    function get_EsclScanInputSource() : WebEsclScanInputSourceEnumJS;
    

    Return Value

    The scan input source for eSCL device.
    Exceptions
    ExceptionDescription
    Thrown if device is not opened OR error occurs during getting value of device capability.
    Example

    // Gets name of scan input source of opened eSCL device.
    function getEsclScanInputSource(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;
            }
            console.log("Scan input source: " + esclDevice.get_EsclScanInputSource());
        }
        catch (ex) {
            alert(ex);
        }
    }
    

    Browser Compatibility
    9
    See Also