VintaSoft Twain .NET SDK 15.2: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / set_EsclScanIntent Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    set_EsclScanIntent Method
    In This Topic
    Sets the scan intent for eSCL device.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var returnValue; // Type: any
    
    // Parameters
    var value; // Type: string
    
    returnValue = instance.set_EsclScanIntent(value);
    
    
    function set_EsclScanIntent(
    value
    The scan intent for eSCL device.
    : string
    ) : any;

    Parameters

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

    // Sets scan intent of opened eSCL device.
    function setEsclScanIntent(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 'Document' intent as the scan intent for eSCL device
            esclDevice.set_EsclScanIntent("Document");
            console.log("Scan intent: " + esclDevice.get_EsclScanIntent());
        }
        catch (ex) {
            alert(ex);
        }
    }
    

    Browser Compatibility
    9
    See Also