VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / get_SaneScanMode Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    get_SaneScanMode Method
    In This Topic
    Gets name of scan mode of SANE device.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: string
    value = instance.get_SaneScanMode();
    
    
    function get_SaneScanMode() : string;
    

    Return Value

    A name of scan mode of SANE device.
    Exceptions
    ExceptionDescription
    Thrown if device is not opened OR error occurs during getting value of device capability.
    Example

    // Gets name of scan mode of opened SANE device.
    function getSaneScanMode(saneDevice) {
        try {
            console.log("SANE device: " + saneDevice.get_DeviceName());
            // if SANE device is not opened
            if (!saneDevice.get_IsOpened()) {
                console.log("Device is not opened. Please open device.");
                return;
            }
            console.log("Scan mode: " + saneDevice.get_SaneScanMode());
        }
        catch (ex) {
            alert(ex);
        }
    }
    

    Browser Compatibility
    9
    See Also