Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Export to Excel Error in SQL Server 2014 Report Builder/Viewer

$
0
0

Hi,

I am using the 2014 version of ReportViewer in a WinForm to display an RDL report.
The report was originally created in Report Builder 2.0 (SQL 2008 R2), but has since been edited in Report Builder 3.0 (SQL 2014).
The report loads and displays OK, and even exports to Word and PDF. But when exporting to Excel and then opening the Excel document, the following error occurs:

"We found a problem with some content in <filename>. Do you want us to try and recover as much as we can? If you trust the source of this workbook, click Yes."

If you click Yes, then a second message appears:

"Removed Part: /xl/styles.xml part.  (Styles)
Repaired Records: Cell information from /xl/worksheets/sheet1.xml part"

The Excel document then opens, and the data is there, but there is no formatting (no border columns, colours, bolds etc.)

The three interesting things are:

- When exported from SQL 2008 R2 Report Builder 3.0, which exports to .xsl instead of .xslx, it works
- A brand new report created in 2014 Report Builder 3.0 exports to .xslx great
- In Report Builder 2014, I stripped everything back and removed all rows and columns so the original table in the report only has one empty row and column it the export still errors - it is only by removing the original table and creating a brand new table that export works OK

It appears to be a problem with the tablix, but ideally we don't want to have to recreate our reports from scratch to fix this issue.

Has anyone come across an issue like this before, and know of any potential resolutions to it?

Thank you.



Viewing all articles
Browse latest Browse all 10045

Trending Articles