IPrxReportUserEvents.EventOnBeforeOpenReport

Syntax

Sub EventOnBeforeOpenReport(Args: IUiPrxReportCancelEventArgs)

Begin

// set of operators

End Sub EventOnBeforeOpenReport;

Parameters

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

Description

The EventOnBeforeOpenReport method implements the event that occurs before opening the regular report.

Example

Sub EventOnBeforeOpenReport(Args: IUiPrxReportCancelEventArgs);

Begin

Args.Cancel := Not WinApplication.ConfirmationBox("Open report " + Args.Report.MetabaseObject.Id + "?");

End Sub EventOnBeforeOpenReport;

When the event occurs, a dialog box to confirm opening the report with the specified identifier opens. Answer Yes to open the report, otherwise it is not opened.

See also:

IPrxReportUserEvents