IPrxReportUserEvents.EventOnBeforeDeleteSheet

Syntax

EventOnBeforeDeleteSheet (Args: IUiPrxSheetCancelEventArgs);

Parameters

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

Description

The EventOnBeforeDeleteSheet method implements the event that occurs before deleting a regular report sheet.

Comments

The method enables to redefine the system event that occurs after the ReportEvents.OnBeforeDeleteSheet event.

Example

Executing the example requires that the repository contains a regular report with connected unit. The connected module and the Parent class must be specified as event handler.

Add links to the Report, Ui system assemblies.

Public Class EventsClass: Parent
    
Public Sub OnBeforeDeleteSheet(Sheet: IPrxSheet; Var Cancel: Boolean);
    
Begin
        
//Call system event redetermined in the Parent class
        Inherited OnBeforeDeleteSheet(Sheet, Cancel);
    
End Sub OnBeforeDeleteSheet;
End Class EventsClass;
Public Class Parent: ReportEvents
    
//Redefine system event EventOnBeforeDeleteSheet
Public Sub EventOnBeforeDeleteSheet(Args: IUiPrxSheetCancelEventArgs);
    
Begin
        WinApplication.InformationBox(
"Regular report sheet will be deleted");
    
End Sub EventOnBeforeDeleteSheet;
End Class Parent;

After executing the example, before regular report sheet deletion the information message is deleted.

See. also:

IPrxReportUserEvents