IPrxReportUserEvents.EventOnBeforeSaveToStateServer

Syntax

Sub EventOnBeforeSaveToStateServer(Args: IUiPrxReportEventArgs);

Begin

//set of operators;

End Sub EventOnBeforeSaveToStateServer;

Parameters

Args. The parameter that enables the user to work with event parameters.

Description

The EventOnBeforeSaveToStateServer method implements the event that occurs before saving a regular report to state server.

Example

Executing the example requires a regular report. Connect a unit to a regular report, select the connected unit and the EventsClass class as an event handler.

Class EventsClass: ReportEvents
    Public Sub EventOnBeforeSaveToStateServer(Args: IUiPrxReportEventArgs);
    Begin
        Debug.WriteLine("Report is saved to state server: " + Args.Report.Name + ". Date and time of saving: " + DateTime.Now.ToString);
    End Sub EventOnBeforeSaveToStateServer;
End Class EventsClass;

Each time a regular report is saved to state server, the corresponding message is displayed in the development environment console.

See also:

IPrxReportUserEvents