Quantcast
Channel: Dynamics Ax – Shashi's Ax.Net Space
Viewing all articles
Browse latest Browse all 57

Ax 2012 Deploy reports through code

$
0
0

Following code can be used to deploy SSRS reports in Ax 2012.
However make sure that this code runs from the client, and not as CIL (otherwise you will get run time errors)

I can run this code as a job and works fine.

    SRSReportManager srsRptMgr = new SRSReportManager();
    SSRSReportConceptNode node = new SSRSReportConceptNode();

    node = TreeNode::findNode(@"\\SSRS Reports\Reports\SalesInvoice");

    srsRptMgr.deploymentStart();
    srsRptMgr.deployReport(node);
    srsRptMgr.deploymentEnd();

Filed under: Ax 2012, Dynamics Ax, SSRS, X++ Tagged: AX2012, Dynamics Ax, SSRS, x++

Viewing all articles
Browse latest Browse all 57

Trending Articles