IPrxReportUserEvents.EventOnBeforeActivateSheet

Syntax

EventOnBeforeActivateSheet(Args: IUiPrxCancelActivateSheetEventArgs);

Parameters

Args. The parameter that 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

Executing the example requires that the repository contains a regular report with connected unit. The connected unit and the EventClass class should be specified as an event handler.

Add links to the Report, Ui system assemblies.

Class EventClass: ReportEvents
    Public Sub EventOnBeforeActivateSheet(Args: IUiPrxCancelActivateSheetEventArgs);
    // Handle the EventOnBeforeActivateSheet event
    Begin
        Args.Cancel := Not WinApplication.ConfirmationBox("Make active " + Args.NewSheet.Name);
    End Sub EventOnBeforeActivateSheet;
End Class EventClass;

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