【问题标题】:SSRS Report - Export to CSVSSRS 报告 - 导出为 CSV
【发布时间】:2011-04-01 16:03:49
【问题描述】:

我正在使用 ssrs 2005。我有一个包含两个表格的报告。

table1

col11 col12 col13
1     2     3

table2

col21 col22 col23
a      b     c
d      e     f
g      h     i

它在报告中呈现得很好,但是当我将它导出为 CSV 时,它很奇怪,看起来像这样:

table1,col11,col12,col13,table2,col21,col22,col23 - All the headers on the first line
1,2,3,a,b,c                         - The first row of both tables on the second line
d,e,f                               - The remaining rows of the second table
g,h,i

我尝试了许多配置/显示设置,但无法正常工作。

我需要 csv 就像报告显示一样:

table1,col11,col12,col13 - The headers on the first line
1,2,3                    - The detail rows under the headers
table2,col21,col22,col23 - The second table below the first table
a,b,c
d,e,f
g,h,i

我只需要在 CSV 中分开两个表。现在,两个表的第一行显示在横线上,其余行显示在下方。

【问题讨论】:

  • 您是否有理由从 ssrs 报告导出到 csv 而不是使用 ssis?
  • 任务要求是将报表部署到报表服务器并创建订阅以每周运行一次报表并发送带有 csv 附件的电子邮件。

标签: sql-server-2005 reporting-services


【解决方案1】:

我看到导出到 excel 时出现奇怪的问题,它不会正确地将数据放入单元格中,为了解决这个问题,我删除了所有分组和浮动页眉/页脚,它工作正常。可能值得一试?

【讨论】:

    猜你喜欢
    • 2019-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多