IPrxReportUserEvents.EventOnBeforePrintReport

Syntax

Sub EventOnBeforePrintReport(Args: IUiPrxReportCancelEventArgs);

Begin

// set of operators

End Sub EventOnBeforePrintReport;

Parameters

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

Description

The EventOnBeforePrintReport method implements the event that occurs before printing the regular report.

Example

Sub EventOnBeforePrintReport(Args: IUiPrxReportCancelEventArgs);

Begin

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

End Sub EventOnBeforePrintReport;

When the event occurs, a dialog box to confirm printing the report with the specified identifier opens. Answer Yes to print the report, otherwise it is not printed.

See also:

IPrxReportUserEvents