Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Closed Issue: Error message when opening the excel file when using styles on some richtext characters. [8002]

$
0
0
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.
E.g.
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.
Comments: 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.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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