IUiPrxReportCancelEventArgs.Cancel

Syntax

Cancel: Boolean;

Description

The Cancel property determines whether a particular action is to be executed on a regular report (calculation, export, opening, print, saving, and so on). If this parameter is set to True, no action is executed on the regular report; if this parameter is set to False, the action is executed.

Example

Consider the event that occurs before report calculation.

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 is displayed. Select Yes to calculate the report or No to cancel calculation.

See also:

IUiPrxReportCancelEventArgs