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

Free Support Forum - aspose.com

The cross string in html is different to it in Excel

I use aspose to convert an Excel document into html. But the cross string in html is different to it in Excel.

It looks well in aspose 8.x: 8_x.png (19.9 KB)

but in aspose 20.12:20_12.png (25.9 KB)

I had try it in aspose 21.10, it look as same as 20.12. Also I use the HtmlSaveOptions:

//code
HtmlSaveOptions option = new HtmlSaveOptions()
option.setHtmlCrossStringType(HtmlCrossType.MS_EXPORT)
workbook.save(“xxx.html”, option);

But it has not effect.

Is there any way to avoid this problem?

here is the Excel file:example.7z (12.6 KB)

@xhaixia,

Please try our latest version/fix (attached): Aspose.Cells for Java v21.11.1:
aspose-cells-21.11.1-java.zip (7.4 MB)

I have tested using it with the following sample code and your template file, it works fine and same as per your screenshot 8.x:
e.g.
Sample code:

Workbook workbook = new Workbook("f:\\files\\example.xlsx");
HtmlSaveOptions option = new HtmlSaveOptions();
option.setHtmlCrossStringType(HtmlCrossType.MS_EXPORT);
workbook.save("f:\\files\\outExample1.html", option);

I have also attached the output HTML file for your reference.
files1.zip (13.3 KB)