添加新的SSRS报告设计 - 销售报价报告

时间:2014-03-25 09:52:07

标签: printing reporting-services axapta dynamics-ax-2012

我已在Sales Quotation报告(AX2012)中添加了新的报表设计。

我可以将设计打印出来的唯一方法是修改标准报表设计或修改Class SalesFormLetterReport_Quotation并将方法getDefaultPrintJobSettings中的报表名称更改为我的新报表设计。这是因为报价报表使用“打印管理”设置并始终使用默认报表设计。

我的问题是,如果我想根据某些数据标准打印不同的设计,即不同的客户类型,我该怎么做?

我唯一能想到的是更改SalesFormLetterReport_Quotation类并覆盖方法'loadPrintSettings'。

我尝试在“打印管理”设置中添加新的条件设置,但这仍然默认为默认报表设计。

2 个答案:

答案 0 :(得分:0)

看看:

  • \类\ PrintMgmtDocType \ getDefaultReportFormat
  • \ Data Dictionary \ Tables \ PrintMgmtReportFormat \ Methods \ populate
  • \ Data Dictionary \ Tables \ SRSReportDeploymentSettings \ Methods \ populateTableWithDefault

这些方法具有硬编码的各种报告布局。真是令人讨厌的狗屎!

答案 1 :(得分:0)

要根据客户分配不同的设计,您可以修改打开SalesQuotation报告的Controller类。

编辑SalesQuotationController类中的main方法。

根据您的具体要求编写逻辑以分配设计。

您可以在SalesQuotationController \ main方法上编辑以下行。

formLetterController.initArgs(_args, ssrsReportStr(SalesQuotation,Report));

enter image description here

相关问题