2010-08-20 170 views
2

我正在使用ssrs 2005.我有两个表的报告。SSRS报告 - 导出为CSV

表1

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

+0

是否有一个原因,你为什么从ssrs报告导出到csv而不是使用ssis? – DForck42 2010-08-26 13:31:44

+0

任务要求是将报告部署到报告服务器,并创建订阅以每周运行一次报告,并将包含附件的电子邮件作为csv发送。 – 2010-08-26 14:00:28

回答

0

我已经看到了奇怪的问题与导出到Excel,它不会将数据放在正确的细胞,来解决这个问题我删除了所有的分组和浮动页眉/页脚和它的工作确定。也许值得尝试一下?