Hi Team,
We have found another issue with Aspose cell.
When downloading the Html page into the worksheet the header text( inside the Caption tag) is disappeared. How ever, when downloading the same Html page into EXCEL file directly, the header text is showing correctly.
Here is the sample code .
Sample driver code :
byte[] data = Files.readAllBytes(Paths.get(“tmp.html”));
HtmlLoadOptions opts = new HtmlLoadOptions(LoadFormat.HTML);
opts.setAutoFitColsAndRows(true);
opts.setConvertNumericData(false);
opts.setSupportDivTag(true);
Workbook downloadedWorkbook = new Workbook(new ByteArrayInputStream(data), opts);
downloadedWorkbook.save(“html_read.xls”, FileFormatType.EXCEL_97_TO_2003);
We are pleased to inform you that the issue (logged earlier as “CELLSJAVA-44496”) has been resolved now. The fix will be included in the next release (Aspose.Cells for Java v22.4) which is scheduled to be published before the end of this week or in the next week early. You will also be notified when the next version is released.
The issues you have found earlier (filed as CELLSJAVA-44496) have been fixed in this update. This message was posted using Bugs notification tool by Peyton.Xu
Hi,
thanks for fixing it. We have updated latest provided ( 22.4) Aspose library and found that the fix does not work correctly.
While loading an HTML object and saving it as Excel, Aspose does not include the caption tag/element for the table.
Sample driver code :
byte[] data = Files.readAllBytes(Paths.get(“tmp.html”));
HtmlLoadOptions opts = new HtmlLoadOptions(LoadFormat.HTML);
opts.setAutoFitColsAndRows(true);
opts.setConvertNumericData(false);
opts.setSupportDivTag(true);
Workbook downloadedWorkbook = new Workbook(new ByteArrayInputStream(data), opts);
downloadedWorkbook.save(“html_read.xls”, FileFormatType.EXCEL_97_TO_2003);
We have used the same html as given above.
please check and advise.
Thanks
puva
I tested using a sample HTML file but could not reproduce the issue with latest version. Could you please zip and attach “tmp.html” file, we will test your issue and try to reproduce the issue with your provided “tmp.html” file.
Please notice, I am able to reproduce the issue as you mentioned by using your HTML source. I found multi-lines captions are lost except the first line in HTML to XLS conversion. I have logged a ticket with an id “CELLSJAVA-44568” for your issue. We will look into it soon.
Once we have an update on it, we will let you know.
However, the bold style of 3rd and 4th caption lines is lost, and it can’t be fixed currently. Please set <b></b> for each caption line in html as a workaround with the coming release. See my modified source html file: bold_for_each_caption_line.zip (537 Bytes)
Hi,
Thanks very much for working hard to fixing it.
Could you please provide the ETA for the release ( date for the release) so that we can plan according to this.
thanks
Puva
The fix will be included in the next release (Aspose.Cells for Java v22.5) which is scheduled in the second week of May 2022. You will also be notified when the next version is released.