ReportEvents.OnBeforeSaveReport

Syntax:

Sub OnBeforeSaveReport(Report: IPrxReport; Var Cancel: Boolean);

Begin

//set of operators;

End Sub OnBeforeSaveReport;

Parameters

Report - the report that has generated the event.

Cancel - this parameter determines report saving. When this parameter is set to True, the report is not saved, if the parameter is set to False, the report is to be saved.

Description

The OnBeforeSaveReport method implements the event that occurs before saving the regular report.

Example

Sub OnBeforeSaveReport(Report : IPrxReport; Var Cancel : Boolean);

Begin

If Not WinApplication.ConfirmationBox("Save report?") Then

Cancel := True;

End If;

End Sub OnBeforeSaveReport;

Before saving the report the system requests to confirm the operation. Select Yes to save the report or No to cancel saving.

See also:

ReportEvents