Visual Basic Reference

ProcessingTimeout Event

See Also    Example    Applies To

Occurs at preset intervals, allowing the user to cancel an asynchronous operation.

Syntax

Private Sub object_**ProcessingTimeout(**Seconds As Long, Cancel As Boolean,****JobType As AsyncTypeConstants, Cookie As Long)

The ProcessingTimeout event syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
Seconds Returns the number of seconds that have passed since starting the asynchronous operation.
Cancel Sets a value that determines if the operation will be canceled, as shown in Settings.
JobType Returns the type of operation, as shown in Settings.
Cookie Returns the ID of the operation. The ID is set when an asynchronous method such as ExportReport or PrintReport is invoked.

Settings

The JobType settings are:

Constant Value Description
rptAsyncPreview 0 The report is processing a Preview operation.
rptAsyncPrint 1 The report is processing a Print operation.
rptAsyncReport 2 The report is processing an ExportReport operation.

The settings for cancel are:

Setting Description
True The operation is cancelled.
False (Default) The operation continues.

Remarks

Use the ProcessingTimeout event to allow the user to cancel an asynchronous operation at specified periods of time.