zoukankan      html  css  js  c++  java
  • Deploy SSRS Report In AX 2012

    1、The SSRS report has 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 has mutiple designs: Create a new class extending the class 'SrsReportRunController', in the main method, we should assign AX to use the corresponding report design. 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 class CustInvoiceController extends SrsReportRunController
    {
    }
    
    public client static void main(Args _args)
    {
        #ISOCountryRegionCodes
    
        CustInvoiceJourController controller = new CustInvoiceJourController();
    
        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();
    }

      

  • 相关阅读:
    C#之事件
    C#之委托
    CIC许可更新
    HMP许可更新
    知识库上传
    [转]spring中<tx:advice></tx:advice>意义
    [转]spring property标签中的 ref属性和ref 标签有什么不同
    [转] Spring@Autowired注解与自动装配
    [转]SpringMVC入门
    [转]SpringMVC拦截器详解[附带源码分析]
  • 原文地址:https://www.cnblogs.com/Jinnchu/p/5354240.html
Copyright © 2011-2022 走看看