Running a SSRS report through args by providing multiple parameter values and saving it to PDF in ax 2009:

Hi,

You can provide values to multiple parameters using args…

static void SaveSSRS_PDF(Args _args)
{
    Args args = new args();
    menufunction m;
    ;
    
    args.parm(“&rs:Format=” + “PDF” + “&PABudgetVsActual_BudgetYear=” + int2str(2014) + “&PABudgetVsActual_BudgetModel=” + “Budget” + “&PABudgetVsActual_GLCode=” + “16500”);
    m = new menufunction(menuitemoutputstr(PABudgetVsActual), menuitemtype::Output);
    m.run(args);
}

Check out this for parameter reference..
http://technet.microsoft.com/en-us/library/1c3e680a-83ea-4979-8e79-fa2337ae12a3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s