IPrxReport.HasEventHandler

Syntax

HasEventHandler: Boolean;

HasEventHandler: boolean;

Description

The HasEventHandler property determines whether event handler is connected to regular report.

Comments

Available values:

Example

To execute the example the repository must contain a regular report with the REPORT identifier.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
Begin
    
// Get the current repository
    MB := MetabaseClass.Active;
    
// Get regular report
    Report := MB.ItemById("REPORT").Bind As IPrxReport;
    
// Display whether there are event handlers
    Debug.WriteLine(Report.HasEventHandler.ToString);
End Sub UserProc;

Imports Prognoz.Platform.Interop.Report;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Report: IPrxReport;
Begin
    
// Get the current repository
    MB := Params.Metabase;
    
// Get regular report
    Report := MB.ItemById["REPORT"].Bind() As IPrxReport;
    
// Display whether there are event handlers
    System.Diagnostics.Debug.WriteLine(Report.HasEventHandler.ToString());
End Sub;

After executing the example, the console window displays information about connected event handlers.

See. also:

IPrxReport