IPrxReportUserEvents.EventOnBeforeExecuteReport

Syntax

Sub EventOnBeforeExecuteReport(Args: IUiPrxReportCancelEventArgs);

Begin

// set of operators

End Sub EventOnBeforeExecuteReport;

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