Hi,
While setting the cell.HtmlString, I am getting error for a value, below:
Actual Error Stack Trace is:
|
Actual Value is "Tax Risk — Sample Text.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Actual Code:
cell.HtmlString = FormatText(cell.StringValue);
Where FormatText is
private static string FormatText(string cellValue)
{
cellValue = cellValue.Replace("
\r\n", "
");
cellValue = cellValue.Replace("
", "
");
cellValue = cellValue.Replace("", "");
cellValue = cellValue.Replace("", "");
return cellValue;
}
Observations:
1. It works with other text which is having tags like eg test
Versions:
1. Aspose.Cell: "7.4.0.4"
I have also tried with new version Aspose.Cell: "8.1.0.0"", but it still gives error.
Please help to make this work. Thanking you in advance!
Regards,
Prajakta