IPrxReportUserEvents.EventOnBeforeActivateSheet

Syntax

Sub EventOnBeforeActivateSheet(Args: IUiPrxCancelActivateSheetEventArgs);

Begin

// set of operators

End Sub EventOnBeforeActivateSheet;

Parameters

Args - the parameter, which enables the user to work with event parameters.

Description

The EventOnBeforeActivateSheet method implements the event that occurs before changing the active sheet of the regular report.

Example

Sub EventOnBeforeActivateSheet(Args: IUiPrxCancelActivateSheetEventArgs);

Begin

Args.Cancel := Not WinApplication.ConfirmationBox("MAke active " + Args.NewSheet.Name);

End Sub EventOnBeforeActivateSheet;

When the event occurs, a dialog box for confirmation of the sheet change opens. Answer Yes to change the active sheet, otherwise the active sheet is not changed.

See also:

IPrxReportUserEvents