Calling a report

Hi All,

Can anyone explain me how to call a normal report using class in ax 2009.



Kavin Devarajan asked the same question yesterday: How to call a report using class in ax2009?

My reply was: What do you mean by “using class”?

Are you able to explain what you’re trying to achieve and what’s the problem you need help with?

Actually i’d like to know how to generate report using x++ code in ax 2009.

You can do something like this:

str reportName = 'Cust';
Args args = new Args(reportName);
ReportRun report = classFactory.reportRunClass(args);

// Modify report.printJobSettings() as needed

// Set as non-interactive (if required)