When using Aspose.Cells 20.12 to convert Excel to HTML, if excludeUnusedStyles is set to true, the content of cells D3 and E3 might all turn black. Upon checking the browser console, it was found that the CSS style corresponding to the class attribute of the font node was missing. If set to false, the final HTML output is normal. I would like to know how this setting determines which styles are unused.
sample code like this:
Workbook workbook = new Workbook("test.xlsx");
HtmlSaveOptions options = new HtmlSaveOptions();
options.setExportActiveWorksheetOnly(true);
options.setExcludeUnusedStyles(true);
options.setHiddenColDisplayType(HtmlHiddenColDisplayType.HIDDEN);
options.setHiddenRowDisplayType(HtmlHiddenRowDisplayType.HIDDEN);
workbook.save("test.html", options);
aspose-upload.zip (85.4 KB)