简体   繁体   中英

Getting one Extra row when exporting SSRS report to Excel

I have a simple Reporting Services report, a simple table, created with BIDS 2005, with the report wizard.

I run the report on a RS2008 R2 server as is and it renders perfectly.

When I export to Excel, an extra row is appended just below the table. The row is hidden and has a heigth of 409.5.

Where that row comes from ? How to get rid of it ?

*nb - no extra row if run on a RS2005 server

The only way I found to eliminate the hidden row is change the layout of the report. I increased the height of all rows of from 0,53333cm to 0,538cm. Anything less than 0,538cm doesn't solve the issue.

According to Microsoft, the goal when exporting to excel is to match the visual appearance of the report as close as possible. The excel output may have unexpected things like extra rows or columns or merged cells as part of the process to match the layout.

将 tablix 位置更改为 0cm, 0cm 将解决问题。

I was running into this issue and tried all the posted solutions I could find, but none worked for me. To be more specific, after exporting the SSRS report to excel there was an extra row that contained duplicated data from the first row of the group. This extra row was contained in a group that could be toggled and when that group was collapsed that extra row was still showing instead of nothing.

This was the report layout looked like before I made the change. 之前报告

What I had to do was add an extra row above and outside the nested grouping by right clicking the group box and selecting "Add row" -> "Outside Group - Above"在组外添加行

Here is the report after. 报告之后

After adding the rows outside the group there was no duplicated data in an extra row.

尝试将报告的大小(不是表格)更改为 0.0pt、0.0pt。它会自动将其设置为所需的最小值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM