1. The SSRS report have only one design:use the MenuItem of 'Output', select the object type 'ssrsreport' and assign the right, SSRS report name and design.
2. The SSRS report have mutiple designs:create a new class extending the class 'Srsreportruncontroller', in the MA In method, we should assign AX for use of the corresponding report design. The Create the MenuItem and set up the "parameters for the" report.
/// <summary>/// the<c>Custinvoicecontroller</c>class is the controller class for the<c>Custinvoice</c>Report ./// </summary> Public classCustinvoicecontroller extends srsreportruncontroller{} PublicClientStatic voidMain (Args _args) {#ISOCountryRegionCodes Custinvoicejourcontroller controller=NewCustinvoicejourcontroller (); if(Syscountryregioncode::countryinfo () = =#isoCZ) {Controller.parmreportname (Ssrsreportstr (CustInvoiceJour, Reportcz)); } Else if(brazilparameters::isenabled ()) {Controller.parmreportname (Ssrsreportstr (CustInvoiceJour, ReportBR)); } Else{controller.parmreportname (Ssrsreportstr (CustInvoiceJour, Report)); } Controller.parmargs (_args); Controller.startoperation ();}
Deploy SSRS report in AX