Show contents 

Report > Report Assembly Interfaces > IPrxReportUserEvents > IPrxReportUserEvents.EventOnBeforeExecuteReport

IPrxReportUserEvents.EventOnBeforeExecuteReport

Syntax

EventOnBeforeExecuteReport(Args: IUiPrxReportCancelEventArgs);

Parameters

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

Description

The EventOnBeforeExecuteReport method implements the event that occurs before calculating the regular report.

Example

Sub EventOnBeforeExecuteReport(Args: IUiPrxReportCancelEventArgs);
Begin
    Args.Cancel := Not WinApplication.ConfirmationBox("Calculate report " + Args.Report.MetabaseObject.Id + "?");
End Sub EventOnBeforeExecuteReport;

When the event occurs, a dialog box to confirm report calculation opens. Select Yes to calculate the report or No to cancel calculation.

See also:

IPrxReportUserEvents