In some cases Value property of a Cell object returns string, that contains "& ;" (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.
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.