Scanner reads paper jam when terminating batch scan

  Imaging Toolkit

Question:

We are doing Batch Scanning, and our users have a requirement that they can stop the scanning process at any moment. So we are calling the TWSCAN_TERMINATE function, without seeing what is happening at the scanner side. So if the page is in the middle of scanning, it shows paper jam detected.

Answer:

The Black Ice BiTwain ActiveX controls the scanner through the driver of the scanner. If the driver of the scanner can’t handle the scanner termination correctly and detects that the paper is jammed we can’t do anything. This issue has nothing to do with the Black Ice BiTwain control.

But, you can do the following:
You can try to stop the scanning directly through the driver of the scanner.
Usually there is a cancel button on the progress dialog of the scanner. The cancel button stops the scanning through the driver. You can enable/disable the progress indicator dialog with the SetScanProgressBarEnbl method (BiTwain.ocx).

Regards,
Technical Support Team