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);
Same Html page (temp.html):
.number { mso-number-format:’@’; } | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||