VintaSoft Twain .NET SDK 15.1: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / acquireModalSync Methods / acquireModalSync() Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    acquireModalSync() Method
    In This Topic
    Does one step of synchronous image acquisition from TWAIN/SANE device (web server will not send response for image acquisition progress).
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: Vintasoft.Twain.WebTwainDeviceAcquireModalResultJS
    value = instance.acquireModalSync();
    
    
    function acquireModalSync() : WebTwainDeviceAcquireModalResultJS;
    

    Return Value

    Exceptions
    ExceptionDescription
    Thrown if device is not opened OR error occurs during one step of synchronous image acquisition.
    Remarks

    This function sends a synchronous request to do one step of synchronous image acquisition from TWAIN device. If you want to use asynchronous request instead of synchronous request, please use WebTwainDeviceJS.acquireModalAsync function.

    Browser Compatibility
    9
    See Also