2010-08-20 137 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,它不會將數據放在正確的細胞,來解決這個問題我刪除了所有的分組和浮動頁眉/頁腳和它的工作確定。也許值得嘗試一下?