ScanBeforeSaveDlg(Situation As Long) As Long

Description

This event is fired after the user has clicked Stop in the operator control dialog. See ScanNotifyUser and ScanUserNotified.

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

If you do not want to see the normal "Save?" dialog, return EV_OK_ABORT and set the return value using SetReturnValue. If you want to save, use the SetReturnValue(0, "Yes") method. If you do not want to save, use SetReturnValue(0, "No"). This is the default return value.

Parameters

The Situation parameter can have one of these values:

Value

Description

1

Last set is complete according to set rules. Save it?

2

Last set is incomplete. Save it anyway?

3

Last form has too few appendices. Save it?

Return values

Return value

Description

EV_OK

Normal return.

EV_OK_ABORT 

Do not show the normal "Save?" dialog.

EV_ERROR

Causes an error message and job termination.

Suggested usage

Could be used to display your own dialog.

Remarks

Only fired in the Scan module.

Events in Scan