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

Free Support Forum - aspose.com

Save workbook to HTML with svg format wrong

HtmlSaveOptions options = new HtmlSaveOptions();
options.setExportActiveWorksheetOnly(true);
options.setHiddenColDisplayType(HtmlHiddenColDisplayType.HIDDEN);
options.setHiddenRowDisplayType(HtmlHiddenRowDisplayType.HIDDEN);
ImageOrPrintOptions imgOptions = options.getImageOptions();
imgOptions.setSaveFormat(SaveFormat.SVG);
imgOptions.setImageFormat(ImageFormat.getIcon());
new Workbook(“a.xlsx”).save(“a.html”, options);

a.xlsx.zip (33.2 KB)

It work wrong in 19.1, but ok in 8.8.2

@xhaixia,

Thanks for your query.

I have tried to run the code snippet with your template file and the output file is fine when I commented out imgOptions.setImageFormat method. Output HTML file created with 19.1.2 version is attached.

19.1.2.zip (20.7 KB)
Aspose.Cells for Java_v19.1.2.zip (6.4 MB)

Let us know your feedback.