SSRS 2008 R2 export to Excel leaves row one as blank

user1816979 picture user1816979 · Nov 13, 2013 · Viewed 15.2k times · Source

In an SSRS 2008 R2 existing report, I want to change the report so the users have the option to hide headers when they export the report to excel. By allowing the users to hide headers when they export the SSRS 2008 report to excel, they can sort and filter the data. This avoids allowing excel to display an error in a popup window saying there are merged cell.

My question is when I hide the headers and export the report to excel, there is a blank line in excel before the data and column headers appear. Basically row # 1 in cell in blank and data and column headers show up starting in column #2.

Thus can you tell me how to remove the blank row in row #1 when the data is exported to excel?

Answer

jaysonseaver picture jaysonseaver · Nov 13, 2013

I believe I have been able to duplicate your issue. Be sure that there is no space between your table and the report header. I find that setting the location property of the tablix to 0,0 is the best way to ensure that there is no space there. By removing the space, you should get your tablix headers as the first row in excel.

Here's an article I wrote giving screen shots and step-by-step instructions.

http://jaysonseaverbi.blogspot.com/2013/11/ssrs-exporting-options-for-excel.html