ActiveReport: IPrxReport;
The ActiveReport property returns an object containing the active regular report.
The property is used to access a regular report from a macro.
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: