How to: Specify a Report Design by Using X++ (MorphX Reporting Tools) [AX 2012]

Updated: March 8, 2011

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

When a report has multiple designs, you can use X++ to specify which design will be displayed when the report is printed.

Use the ReportRun::design method to specify a report design.

To specify a report design

  1. In the Application Object Tree (AOT), expand the report node, right-click Methods, and then click New Method.

  2. In the new method, call the design method to specify a report design.

    In the following example, the design method specifies the ReportDesign2 design for the AssetAcquisition report.

    public void SetDesign()
        Args ArgList = new Args(reportStr("AssetAcquisition"));
        ReportRun rr = new ReportRun(ArgList);