将 SSRS 报告导出为 CSV 格式时出现问题

Problem in exporting SSRS report to CSV format

我有很多 SSRS 报告,并且在将数据导出到 CSV 文件时都遇到了同样的问题。 (从 VS-2005 升级到 VS-2013)

我在 header 上有一些 GROUP 数据,同时根据条件显示数据,如下图所示:

将数据导出为 CSV 格式时,他们的 header 数据也会与 table-grid 数据一起下载。如下图所示(黄色阴影)

我实际上想将那些 header 列与实际数据行合并,如下图所示:(黄色阴影)

已编辑

我找到了一种从 CSV 中删除 Header 值的解决方案。将 DataElementOutput 设置为 NoOutput(如下图所示)

但是,仍然无法将那些 header 值合并到 Data-Grid 中。 提前谢谢你

基于以下官方文档:

Redesigned CSV Data Renderer

In earlier versions of Reporting Services, when you exported a report to a CSV file format, the data was formatted in a way that preserved the way the data appeared on the report page. For matrix data regions, this resulted in a data format that was inconvenient to import into other applications in order to continue to work with the data.

In this release, when you export a report to a CSV file, you can choose between two supported formats: Default mode and Compliant mode. Default mode is optimized for Excel. Compliant mode is optimized for third-party applications.

The earlier format for CSV files is no longer available. However, for reports that do not use matrix data regions, you can use Compliant mode to get a file format closest to the earlier CSV file format.

SSRS 2005 CSV 渲染器似乎在 SSRS 2008 R2 中进行了重大更改,支持新功能。

解决方法

检查以下问题,他们是否提供了添加旧 csv 渲染器的报告服务扩展:

  • Force SSRS 2008 to use SSRS 2005 CSV rendering

参考和有用链接