VintaSoft Twain .NET SDK 15.5: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / open Methods / open(boolean,boolean) Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
open(boolean,boolean) Method
In This Topic
Opens TWAIN/WIA/SANE/eSCL device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);

var value; // Type: any

// Parameters
var showUI; // Type: boolean
var showIndicators; // Type: boolean

value = instance.open(showUI, showIndicators);

Parameters

showUI
True - device UI must be shown; false - device UI must NOT be shown.
showIndicators
True - device should show progress indicator during image scan process; false - device should not show progress indicator during image scan process. Default value is true.
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