VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / open Methods / open(boolean) Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    open(boolean) Method
    In This Topic
    Opens TWAIN/SANE device (device will show progress indicator during image scan process).
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: any
    
    // Parameters
    var showUI; // Type: boolean
    
    value = instance.open(showUI);
    
    
    function open(
    showUI
    True - device UI must be shown; false - device UI must NOT be shown.
    : boolean
    ) : any;

    Parameters

    showUI
    True - device UI must be shown; false - device UI must NOT be shown.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong type OR another device is opened already OR error occurs during opening the device.
    Remarks

    This function sends a synchronous request to open TWAIN device. If you want to use asynchronous request instead of synchronous request, please use WebTwainDeviceJS.openAsync function.

    Browser Compatibility
    9
    See Also