Dev Center
When scanning an image with Dynamic Web TWAIN, you may receive the error message “General failure” in the ErrorString property.
The problem occurs when the source (scanner) is not disabled completely after a scanning session or the source is currently unavailable.
You can reset the existing connections of the source by calling CloseSource & CloseSourceManager to close the sources existing connections before calling SelectSource.
function AcquireImage() {
DWObject.CloseSource();
DWObject.CloseSourceManager();
DWObject.SelectSource();
DWObject.OpenSource();
DWObject.AcquireImage();
}
latest version