Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Commented Unassigned: [4.0 RC1] Cell.Value sometimes returns "&" instead of "&" [15092]

$
0
0
In some cases Value property of a Cell object returns string, that contains "&amp ;" (without space between 'amp' and ';') instead of valid "&".
Comments: I have helper library around of EPP where I have a method setting the value of the Cell. See code below. ``` public void SetCellValue(int worksheetIndex, int rowIndex, int colIndex, object value) { ExcelWorksheet worksheet = WorkBook.Worksheets[worksheetIndex]; worksheet.Cells[rowIndex, colIndex].Value = (value is string || value is StringBuilder) ? value.ToString().Replace("&", "&") : value; } ``` Without a call to "Replace("&", "&")" I'm getting the xlsx package corrupted. Actual for EPP v. 4.0.5.

Viewing all articles
Browse latest Browse all 2262

Trending Articles



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