VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceManagerJS type / openAsync Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
openAsync Method
In This Topic
Sends an asynchronous request to open TWAIN/WIA/SANE/eSCL device manager.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceManagerJS(service);

var value; // Type: any

// Parameters
var initSettings; // Type: WebTwainDeviceManagerInitSettingsJS
var successFunc; // Type: function
var errorFunc; // Type: function

value = instance.openAsync(initSettings, successFunc, errorFunc);

Parameters

initSettings
An instance of WebTwainDeviceManagerInitSettingsJS class that defines initialization settings for TWAIN device manager.
successFunc
A function that will be executed if request is executed successfully. Function prototype: "successFunc(twainDeviceManager)", where 'twainDeviceManager' parameter is an instance of WebTwainDeviceManagerJS class.
errorFunc
A function that will be executed if request is failed. Function prototype: "errorFunc(twainDeviceManager, errorMessage)", where 'twainDeviceManager' parameter is an instance of WebTwainDeviceManagerJS class, 'errorMessage' parameter is string that describes error.
Exceptions
ExceptionDescription
Thrown if argument is not an instance of WebTwainDeviceManagerInitSettingsJS class OR device manager is opened OR error occurs during opening the device manager.
Remarks

This function sends an asynchronous request to open TWAIN device manager. If you want to use synchronous request instead of asynchronous request, please use WebTwainDeviceManagerJS.open" function.

Browser Compatibility
9
See Also