Rich Text Format to Cell using Html String

Hello Aspose-Team,

I could not get it working when applying rich text format to cell using HtmlString attribute, I got an Exception when I set in an Excel-Cell a specific HtmlString.

Out Aspose.Cells-Version ist:20.6.6

Is it possible to avoid this kind of Exceptions from the side of Aspose?

Code-Example:

var book = new Workbook("C:\\Projekte\\Test_Aspose.xlsx");
Worksheet sheetBla = book.Worksheets["Tabelle1"];
sheetBla.Cells[1, 1].HtmlString = "<p><span style=\"font - style: normal; background - color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; font-family: Arial, 'Segoe UI', Calibri, Thonburi, Arial, Verdana, sans-serif, 'Mongolian Baiti', 'Microsoft Yi Baiti', 'Javanese Text'; font-size: 13px; color: #000000; color: #000000; font-family: Arial, 'Segoe UI', Calibri, Thonburi, Arial, Verdana, sans-serif, 'Mongolian Baiti', 'Microsoft Yi Baiti', 'Javanese Text'; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 700; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; color: #000000; font-family: Arial, 'Segoe UI', Calibri, Thonburi, Arial, Verdana, sans-serif, 'Mongolian Baiti', 'Microsoft Yi Baiti', 'Javanese Text'; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;\">21.09.2021</span></p>";
book.Save("C:\\Projekte\\Test_Aspose.xlsx");

Thank’s for your help,
Matthias

@Matthias_Winzer,

Please try our latest version/fix: Aspose.Cells for .NET v21.10.1 (attached):
Aspose.Cells21.10.1 For .Net2_AuthenticodeSigned.Zip (5.6 MB)
Aspose.Cells21.10.1 For .Net4.0.Zip (5.6 MB)
Aspose.Cells21.10.1 For .NetStandard20.Zip (5.6 MB)

I have tested using your sample code with it and it works fine. I do not get any exception.