Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reporting Services export to Excel causes 'Repair' and removes styles

I have quite a complex SSRS report that I would like to export to Excel more or less how it looks in the web output.

Export to Excel and opening in Excel 2010 yields the following error:

Excel was able to open the file by repairing or removing the unreadable content. Removed part: /xl/styles.xml part (Styles)

All the styling is gone from the report, so it looks terrible.

like image 877
upshake Avatar asked May 07 '14 05:05

upshake


1 Answers

After isolation testing it I have fixed 99% of the style errors by one simple change:

Excel doesn't seem to like 'Total' cells for Row Groups within tables having no Font='' (these cells are auto-created when you create a total for a group)

Font=", 10pt, Default, Bold, Default"

Change Font to "Arial":

Font="Arial, 10pt, Default, Bold, Default"

like image 96
upshake Avatar answered Oct 07 '22 09:10

upshake