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

    Parameters

    isProgressResponseEnabled
    A value indicating whether web server should send response for image acquisition progress. If undefined, false is used.

    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