How to call a SSRS report by code AX 2012

hello guys,

I created a new Desing in CustAccountStatementExt report and when I try to call it, It shows me the native design “Report”.

How can I call my new design??

My code:

static void job()

{

SrsReportRunController controller;

;

controller = new CustAccountStatementExtController();

controller.parmReportName(ssrsReportStr(CustAccountStatementExt,NewDesign));

controller.parmShowDialog(true);

controller.startOperation();

}

Pls Help me!!!

Thanks

NOTE: I use “controller = new CustAccountsStatementExtController()” because I will send default params with

parmRDPContract() and parmQueryContracts().

It’s strange, because almost the same code is used by standard AX in CustAccountStatementExtController::main(). I assume the standard logic works for you, doesn’t it?