We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.cells Html string


In our application we are using Aspose.cells property to generate the excel report. There are some fileds which stores html text,

we used cells[currentRow,1].Htmlstring property for those fields. we are getting an error when we tried to call the htmlstring property

Error message : Key is already existed in the Dictonary [Argument caught exception]

can you please help me on this,

Note : if we use Cells.putvalue for the same fileds then the report is generating with HTML tags.


Anusha Vallabhaneni.

Hi Anusha,

Thank you for contacting Aspose support.

I am afraid, we cannot evaluate the presented scenario without your complete code and input sample spreadsheet, if any. Please provide us an executable sample application along with its dependencies to investigate the matter on our side. However, please first give a try to the latest revision of Aspose.Cells for .NET 8.7.2 to see if you are still able to replicate the said issue.

That said, please note that the Cell.HtmlString property allows you to parse the HTML contents and set the result as cell value, whereas the Cell.PutValue method will simply inject the contents to the cell without parsing.