Question

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.

Was it helpful?

Solution

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"

OTHER TIPS

Another thing to look for if all of your textboxes have a font name is the Format Property. I had a date field that I wanted formatted, so, in the Format field, I used =Format(Fields!CreatedDate.Value, "MM/dd/yyyy"). This worked when viewing the report, however, when exporting, received the unreadable content error. I eventually just used: MM/dd/yyyy in the format property, that solved my problem.

In my case, I fixed this by preventing a divide-by-zero.

For some weird reason, instead of failing to render a divide-by-zero, it displays the word Infinity.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top