Sub EventOnBeforePrintReport(Args: IUiPrxReportCancelEventArgs);
Begin
// set of operators
End Sub EventOnBeforePrintReport;
Args - the parameter, which enables the user to work with event parameters.
The EventOnBeforePrintReport method implements the event that occurs before printing the regular report.
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: