How to pass parameter value to SSRS from Ax 2012

I have created one ssrs report with one string parameter. I try to call this SSRS report through output menuitem and x++.

I am using the below code but, the value is not passing to the report. I am sure the value is there in the table.

MenuFunction SSRS_Report;

Args Args;

str parmId ="";


SSRS_Report = new MenuFunction(menuItemOutputStr(DeliveryReceiptMenuItem),MenuItemType::Output);

Args = new Args();

parmId = “DeliveryReceiptParmId=” + DeliveryReceiptTable.Id;


Thanks in advance,