How to change paper orientation at runtime in AX 2012

This question is answered

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

Verified Answer
All Replies
  • 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,

    Leandro H.

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