Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.
You usually can use parmReportName() method of the controller. The application is full of example, just use Find references. For instance, look into CustAuditorReportController class. In general, you need to do at some point before running the report; it's often done already in main().
It would be also good to know whether you aren't talking about a report that uses print management.