SSRS报告 - 导出为CSV

问题描述 投票:3回答:1

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

table1

col11 col12 col13
1     2     3

表2

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中分开两个表。 现在,两个表的第一行显示在下面,其余行显示在下面。

sql-server-2005 reporting-services
1个回答
0
投票

我已经看到导出到excel的奇怪问题,它不会正确地将数据放入单元格中,为了解决这个问题,我删除了所有分组和浮动页眉/页脚,它运行正常。 也许值得尝试一下?

© www.soinside.com 2019 - 2024. All rights reserved.