Workbook ww = new Workbook("C:/数据标签字体变大问题.xlsx");
HtmlSaveOptions options = new HtmlSaveOptions();
ImageOrPrintOptions imgOptions = options.getImageOptions();
imgOptions.setSaveFormat(SaveFormat.SVG);
imgOptions.setImageFormat(ImageFormat.getIcon());
options.setExportActiveWorksheetOnly(true);
ww.save("C:/数据标签字体变大问题.html", options);
Hi,
Thanks for providing us template file and sample code.
After an initial test, I observed the issue as you mentioned by using your template file and sample code. I found that style/formatting is wrong when save to HTML, see the screenshot for your reference:
http://prntscr.com/esnl4l e.g Sample code: Workbook ww = new Workbook(“C:/数据标签字体变大问题.xlsx”); HtmlSaveOptions options = new HtmlSaveOptions(); ImageOrPrintOptions imgOptions = options.getImageOptions(); imgOptions.setSaveFormat(SaveFormat.SVG); imgOptions.setImageFormat(ImageFormat.getIcon()); options.setExportActiveWorksheetOnly(true); ww.save(“out1.html”, options);
I have logged a ticket with an id “CELLSJAVA-42245” for your issue. We will look into it soon.
Once we have an update on it, we will let you know here.
Thank you.
Hi,
Your issue (logged earlier as “CELLSJAVA-42245”) should be fixed in it.
Let us know your feedback.
Thank you
The issues you have found earlier (filed as CELLSJAVA-42245) have been fixed in Aspose.Cells for Java 17.6.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.