Hello Guys,
I have a question about new event OnAfterSubstituteReport in codeunit 44. According to the Microsoft:
Substitution is possible whenever a report is invoked as the result of the user activating a page action that has the RunObject property set to a report or a report is invoked through one of the following static methods on the Report data type.
Therefore any kind of report invocation not like REPORT.RUNMODAL, but when the report was initiated as a variable such as CopySalesDoc on Sales Invoice wont' work:
CopySalesDoc.SetSalesHeader(Rec);
CopySalesDoc.RUNMODAL;
CLEAR(CopySalesDoc);
Does Microsoft plan to change it in the future?
Mat