ScanOutOfPaper() As Long

Description

This event is fired when there is no more paper in the scanner's automatic document feeder. Note that this event is only fired on the application and job levels in Scan.

If you do not want to see the normal "The automatic document feeder is empty" dialog, return EV_OK_ABORT and set the return value using SetReturnValue. If you want to stop scanning, use the SetReturnValue (0, "Stop") method. This is the default return value. If you want to continue scanning, use SetReturnValue (0, "Cont").

Parameters

None.

Return values

Return value

Description

EV_OK

Normal return.

EV_OK_ABORT 

Do not show the normal "The automatic document feeder is empty" dialog.

EV_ERROR

Causes an error message and job termination.

Suggested usage

Could be used to display your own dialog when there are no more forms to scan.

Remarks

Only fired in the Scan module. Note that the ScanNotifyUser event is much more flexible and is preferable to this event.

Events in Scan