列表中包含矩阵的 SSRS 2005 报告在 2008 SSRS 实例上显示数据不正确

发布于 2025-01-05 18:42:57 字数 1794 浏览 0 评论 0原文

我有一份 2005 Reporting Services 报告,需要将其部署到 Reporting Services 2005 和 2008 实例。在该报告中,我有一个矩阵,上面定义了几个行组。该矩阵位于定义了组的列表中,因此该矩阵将在报表上显示多次。这在 Reporting Services 2005 实例上运行良好。下面是我的数据在 2005 年如何显示的示例。

List_Group1
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount                  
  Matrix_Group2  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount

List_Group2
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount                  
  Matrix_Group2  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount

当我将报告部署到 2008 年的 SSRS 实例时,我的问题出现了。当我查看报告时,数据显示如下:

List_Group1
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount                  
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount

List_Group2
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount                  
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount

对于同一列表组,Matrix_Group1 和 Matrix_Group3 的字段会显示多次。奇怪的是 2008 年实例上的计数和金额显示正确。有人知道发生了什么事吗?如果我去掉列表,只在报告上显示矩阵,则矩阵会在 2008 年“正确”显示,尽管没有列表分组。

I've got a 2005 Reporting Services report that I need to deploy to both 2005 and 2008 instances of Reporting Services. On that report, I've got a matrix with a couple of row groups defined on it. That matrix is on a list that has a group defined on it, so that the matrix will display multiple times on the report. This works well on the 2005 instance of Reporting Services. Below is an example of how my data is displayed in 2005.

List_Group1
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount                  
  Matrix_Group2  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount

List_Group2
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount                  
  Matrix_Group2  Matrix_Group3  Count
                                Amount
                 Matrix_Group4  Count
                                Amount

My problem comes when I deploy the report to our 2008 instance of SSRS. When I view the report, the data is displayed as below:

List_Group1
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount                  
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount

List_Group2
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount                  
  Matrix_Group1  Matrix_Group3  Count
                                Amount
                 Matrix_Group3  Count
                                Amount

The fields for Matrix_Group1 and Matrix_Group3 get displayed multiple times for the same list group. The odd thing is that the counts and the amounts on the 2008 instance show up correctly. Anybody have any idea what's going on? If I get rid of the list and just have the matrix on the report, the matrix displays "correctly" in 2008, albeit without the list groupings.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请你别敷衍 2025-01-12 18:42:57

Reporting Services 2005 中的表和矩阵对象已替换为 Reporting Services 2008 中的 Tablix 对象(在 BIDS 中,您仍然可以看到“表”和“矩阵”选项,但这些只是 Tablix 的不同配置)。

听起来您正在将2005版本的报表直接部署到2008年的服务器上,而无需在2008年的BIDS中打开它并升级。在这种情况下,2008 服务器将在第一次运行时尝试升级报告。它仅尝试升级一次,如果升级失败,它将使用内置的“2005”渲染引擎运行报告。

在我看来,在将 2005 年报告部署到 2008 年服务器后,转换到 2008 年会出现问题。我建议将 2005 rdl 文件复制到 BIDS 2008 中的报告项目并在那里打开它 - 系统应该提示您将报告升级到 2008。完成此操作后,您可以检查新版本的报告以查看已完成的操作将现有矩阵转换为 Tablix 时自动进行。

您也许能够找到一种方法来修改 2005 年报表,以便它也能在 2008 年正确呈现,但由于 2005 年矩阵和 2008 tablix 是不同的对象,因此您在 2005 年创建的内容可能根本无法呈现2008年也是如此。在这种情况下,您可能需要更改报告或创建单独的 2008 版本报告。

Table and matrix objects in Reporting Services 2005 were replaced with Tablix objects in Reporting Services 2008 (in BIDS you still see Table and Matrix options but these are just different configurations of Tablix).

It sounds like you are deploying the 2005 version of the report to a 2008 server directly without opening it in 2008 BIDS and upgrading. In this scenario, the 2008 server will attempt to upgrade the report the first time it is run. It tries to upgrade once only and if the upgrade fails it will then run the report using a built-in "2005" rendering engine.

It sounds to me like something is going wrong with the conversion to 2008 after you have deployed the 2005 report to the 2008 server. I recommend copying the 2005 rdl file to a reports project in BIDS 2008 and opening it there - you should be prompted to upgrade the report to 2008. After this is done you can then inspect the new version of the report to see what has been done automatically when converting the existing matrix to a tablix.

You might be able to find a way to modify the 2005 report so that it renders on 2008 correctly as well, but since the 2005 matrix and 2008 tablix are different objects it might be that what you have created in 2005 simply can't be rendered in 2008 in the same way. In that case you might need to change your report or create a separate 2008 version of the report.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文