Dev Center
When you try to acquire images, you may get this error.
The problem may occur when the source is not disabled completely after a transfer ends or is used by other applications.
true
and use CloseSource() to make sure that the source is closed after a scanning session.function btnScan_onclick() {
DWObject.RegisterEvent("OnPostAllTransfers", function () {
DWObject.CloseSource();
});
DWObject.SelectSource();
DWObject.CloseSource(); //close source before open
DWObject.OpenSource();
DWObject.IfDisableSourceAfterAcquire = true; //close the scanner UI after acquiring
DWObject.AcquireImage();
}
latest version