ActiveReport: IPrxReport;
The ActiveReport property returns the object containing the active regular report. The property is used to access the regular report from a macro.
Sub Macro_1;
Var
Report: IPrxReport;
Begin
Report := PrxReport.ActiveReport;
Report.ActiveSheet.Table.Cell(0,0).Value := DateTime.Now;
End Sub Macro_1;
This example is a macro for regular report. After executing the macro current date and time are saved to the A0 cell of the active sheet of the regular report.
See also: