Hi,
Using Aspose Cells for Java, version 25.2.
Sample code:
Workbook workbook = new Workbook("input.xlsx");
WorksheetCollection worksheets = workbook.getWorksheets();
Worksheet worksheet = worksheets.get("Dashboard");
worksheets.setActiveSheetIndex(worksheet.getIndex());
HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.HTML);
saveOptions.setExportActiveWorksheetOnly(true);
saveOptions.setEncoding(Encoding.getUTF8());
saveOptions.setExportImagesAsBase64(true);
workbook.save("output.html", saveOptions);
The attached zip file contains the input Excel, the output HTML, and a picture highlighting the inconsistent background color of some cells in the generated HTML.
Kind regards,
Taras
repro.zip (3.0 MB)
@TarasTielkes,
Thanks for the template Excel file, screenshot and output HTML file.
After initial testing, I am able to reproduce the issue as you mentioned by using your template Excel file. I found incorrect cell background rendered for some cells when exporting Excel file to HTML.
We require thorough evaluation of the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSJAVA-46270
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
I assume that those inconsistent background colors for a few cells in the HTML output would be a relatively easy fix
@TarasTielkes,
We are sorry but we have not yet had the opportunity to analyze your issue in detail, so cannot comment if the issue is easier to fix. Due to other high-priority tasks currently in progress, we have not been able to evaluate or schedule your issue yet. Rest assured, we will review it as soon as possible and provide an update here once we have more information. Thank you for your patience.
@TarasTielkes ,
We are pleased to inform you that your issue has been resolved. The fix will be included in an upcoming release (Aspose.Cells v25.3 that we plan to release in the first half of March 2025. You will be notified when the next version is released.
Attached is the result after fix for your reference:
output.zip (167.7 KB)
Thank you for the effort, looking forward to the next version!
@TarasTielkes
Thank you for your feedback. You are welcome. We will notify you immediately once the version v25.3 is released.
1 Like
The issues you have found earlier (filed as CELLSJAVA-46270) have been fixed in Aspose.Cells for Java 25.3.