ScanBatchDialogClosed(cBundleCnt As Long, cBundleIndex As Long, cAction As Long) As Long

Description

Note that the Job object and BatchDef object are available even though this event is fired on application level in Scan.

To use newly changed batch settings, use SetReturnValue ( 0, "1").

To change the start index, use SetReturnValue( 1, "StartIndex"). If StartIndex is not – 1 then StartIndex is used as the new start index.

Parameters

The parameters inform you about the current batch number (cBundleCnt), current batch index (cBundleIndex) and which button the user clicked to close the dialog (cAction).

The parameter Action can have one of these values:

Value

Description

3

Stop the scanning job.

0

Continue with new batch.

Return values

Return value

Description

EV_OK

Normal return. Continue normal batch scanning.

EV_OK_ABORT 

The same as EV_OK.

EV_ERROR

Causes an error message and job termination.

Suggested usage

See also the StartNo, Prefix, Size, ReportFileName, PrintReport, and Confirm properties on the BatchDef object.

Remarks

Only fired in the Scan module.

Events in Scan