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

Free Support Forum - aspose.com

Cell.setHtmlString() is not working

Hi,

While generating the excel report i am using a method Cell.setHtmlString() to print strickthruogh text in a cell.

The method Cell.setHtmlString() for HTML5 strickthroug like aspose is not working. But its working for and tags.
Please help us

Hi,


Thanks for providing us some details.

Well, Aspose.Cells follows Ms Excel standards and specifications. If you could open a new Workbook in Ms Excel manually and enter a value “abc” to A1 cell and then apply Strikethrough Font effect while formatting the cell, save the file as Web page (HTML). Now if you see the source html code for the sheet, you will notice the relevant tags as following:
abc

So, it is correct behavior and rendering. I am afraid, we might not support your needs as we follow Ms Excel standards while reading and rendering HTML file formats.

Thank you.

Thanks for the feedback.

But my point is very clear cell.setHtmlString(“aspose strickthru”); is not working for me.

We are generating the HTML code as aspose strickthru for strick through, And we are saving cell value as shown in the above into the DB.

Example: http://www.w3schools.com/tags/tag_strike.asp

Please help us.

Hi,


Well, we are sorry but as I told you that we might not support your needs as we follow MS Excel standards while reading and rendering HTML file formats. To confirm the new tag is not supported by MS Excel (2007/2010), I have attached an HTML file that contains the relevant tag/ code. Now simply open the file into MS Excel 2010, you will see that it does not strike-through the text at all.


Thanks for your understanding!


Thanks for the input.
Bye