IPrxReportClass.ActiveReport

Syntax

ActiveReport: IPrxReport;

Description

The ActiveReport property returns an object containing the active regular report.

Comments

The property is used to access a regular report from a macro.

Example

This example is a macro for a regular report.

Add links to the Report, Tab system assemblies.

Sub Macro_1;
Var
    Report: IPrxReport;
    Sheet: IPrxSheet;
    SheetTab: IPrxTable;
    Table: ITabSheet;
Begin
    Report := PrxReport.ActiveReport;
    Sheet := Report.ActiveSheet;
    SheetTab := Sheet As IPrxTable;
    Table := SheetTab.TabSheet;
    Table.Cell(0,0).Value := DateTime.Now;
End Sub Macro_1;

After executing the macro current date and time are saved to the A0 cell of the active sheet of the regular report.

See also:

IPrxReportClass