Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Spreadsheet created by OpenXml SDK 2.5 failing validation without any details

$
0
0

I am trying to create a spreadsheet using Open XML SDK 2.5, and although the file can be opened in MS Excel, it gives a prompt-

"We found a problem with some content in "filename.xlsx". Do you want us to recover as much as we can?"

If i click yes, it opens the excel just fine, with a message-

"Repaired Records: Cell information from /xl/worksheets/sheet.xml part".

I tried to validate the generated fine in Open XML SDK Productivity tool, where it gives following error description for almost all the cells-

"Element 'DocumentFormat.OpenXML.Spreadsheet.CellFormat' referenced by 'c@s' does not exist in part '/WorkbookPart/WorkbookStylesPart'. The index is '1'."

What am I missing? I have not added any style information or stylepart in the spreadsheet, yet this probably is related to style information. Is adding a stylepart mandatory?


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>