Dynamic Web TWAIN Error: General failure

Symptoms

When you try scanning an image with Dynamic Web TWAIN, you may receive the error message General failure in the ErrorString property.

Cause

The problem occurs when the source (scanner) is NOT disabled completely after a scanning session or the source is currently unavailable.

Resolutions

You can set IfDisableSourceAfterAcquire to 'true'.

Code Snippet

function AcquireImage() {
    DWObject.IfDisableSourceAfterAcquire = true;
    DWObject.SelectSource();
    DWObject.OpenSource();
    DWObject.AcquireImage();
}
Is this page helpful?

Leave a Reply

Your email address will not be published.