Hello.
We are currently evaluating the latest version of Aspose Cells and noticed the following issue:
When the horizontal text alignment of the cells containing icons is set to “Center” or “Right (indent)” in the Excel tables - this setting is ignored during the save of the workbook in the HTML format, and the cells in the tables all displayed left-aligned.
This behavior can be seen in the latest Aspose Cells for Java version 23.6, the attached ConditionalFormatsIcons.xlsx
file and the following Java code:
final String xlFile = [PATH] + "ConditionalFormatsIcons.xlsx";
Workbook wb = new Workbook(xlFile);
String htmlFile = xlFile.replace(".xlsx", "-v" + CellsHelper.getVersion() + ".html");
Files.deleteIfExists(Paths.get(htmlFile));
wb.save(htmlFile);
System.out.println("Successfully created HTML file: " + htmlFile);
Running the above code will produce the attached ConditionalFormatsIcons-v_23.6.0.html .
Environment Details:
- Aspose Cells for Java 23.6
- Java version 1.8.0_211
- Windows 10 OS (also reproducible under Linux 7.4).
Please let me know if you need any additional information.
Thank you.
testAsposeCellsIconAlignment.7z (9.9 KB)