Question Status

Verified
Luigi77 asked a question on 16 Oct 2013 1:23 AM

Hi there

I need to change paper orientation on a AX 2012 SSR-Report at runtime. How can I achieve that?

Thank you and best regards

Reply
Verified Answer
Leandro Honório responded on 16 Oct 2013 4:40 AM

Hi, Luigi

I believe you need to run your report from code (not via an output menu item) to do that. You can base your code on the following:

axinternals.blogspot.com.br/.../running-report-via-code-in-ax2012.html

To set orientation, use:

SrsReportRunController.parmReportContract().parmPrintSettings().landscape(<boolean>);

Regards,

Reply
Luigi77 responded on 16 Oct 2013 6:55 AM

Thank you, right, the SrsReportRunController.parmReportContract().parmPrintSettings() has the right properties that for ...

Reply
Verified Answer
Leandro Honório responded on 16 Oct 2013 4:40 AM

Hi, Luigi

I believe you need to run your report from code (not via an output menu item) to do that. You can base your code on the following:

axinternals.blogspot.com.br/.../running-report-via-code-in-ax2012.html

To set orientation, use:

SrsReportRunController.parmReportContract().parmPrintSettings().landscape(<boolean>);

Regards,

Reply