<p>The Matrix in SSRS (SQL Server Reporting Services 2005) seems to have issues with certain the border styles when exporting to XLS (but not PDF or web view; maybe other formats, not sure?).</p>

<p>For example: Create a matrix and set the Matrix border style to Black Solid 1px, but all 4 of the cells to have a border style of Black None 1px. When viewed via the ASP.NET control, it looks correct. But after export to XLS, it creates borders around all of the header cells (column and row headers, and the top left cell), and even the right most data column. But all the cells in the middle of the report correctly have no border set.</p>

<p>Update:</p>

<p>If the Matrix borders are set to None, then the borders on the cells don't show up in XLS. So, how do you set an outer border around the Matrix, but not have it apply the 'all sides' border to every cell that touches the edge of the Matrix when exported to Excel?</p>

[{'answer_id': 78343, 'author': 'Liron Yahdav', 'author_id': 62, 'author_profile': 'https://Stackoverflow.com/users/62', 'pm_score': 3, 'selected': True, 'text': "<p>This seems to be a bug in SSRS 2005 Excel rendering. I've been able to fix this by explicitly setting all sides of the matrix BorderStyle property (Left, Right, Top, Bottom) to Solid.</p>\n\n<p>Also, when you do this, it seems like setting the BorderStyle.Default property to Solid or None doesn't matter. The value explicitly set for the other sides overrides that Default value.</p>\n"}, {'answer_id': 2947733, 'author': 'Robert dennyson', 'author_id': 348879, 'author_profile': 'https://Stackoverflow.com/users/348879', 'pm_score': 0, 'selected': False, 'text': '<p>I had this problem while exporting it to xls. but here is a cool trick to solve this....!\nUse custom formating in borders...solved</p>\n'}]
['https://Stackoverflow.com/questions/78062', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2291/']