This project has moved. For the latest updates, please go here.


Error message when opening the excel file when using styles on some richtext characters.


When setting Style properties on a RichText that contains only ".", or "\r" or "\n" or combinations of the above you get an error when opening the excel file and you have to recover the document.
If you have a cell with the value: "Test...Test", if you set the style with: cell.RichText.Substring(5,1).SetStrikethrough() you will receive the error when opening the file. The same thing happens for example with SetBold() or SetFontColor().
FYI, I'm implementing some string comparing feature and I want to highlight the differences between two strings. There are some cases in which the strings differ by only a dot, so it makes sense to highlight only that.
Closed Apr 25 at 8:39 PM by igitur
Please try the latest version of ClosedXML (v0.87.1 at this stage). If you still experience the issue, log it on the new GitHub page.