Is it possible to run a report passing the report number (like in example 2), but before running the report passing some variables (like in example 1) to the report to use in the report (using Single Instance Codeunit is not an option).
Basically combining these 2 ways:
Variable MyReport: Report 50000
MyReport.setvalue(some decimal, some string, some date);
If you do report.run you cant pass anything.
Is there any reason you cant declare a report variable?
The only "workaround" I cant think of is assigning some values to the rec before doing report.run and then use them in "oninitreport/onprereport", like:
if isWhatEver then begin