Hello,
after executing the given code, warning and repair message pop-up on opening saved excel file. Can you help me with this? I am using aspose.cells for java 17.11.0 version.
Workbook workbook = new Workbook("UroborosCL_PIP_01_Basic.xlsx");
Font font;
WorksheetCollection worksheets = workbook.getWorksheets();
for (Object o1 : worksheets) {
Worksheet worksheet = (Worksheet)o1;
Cells cells = worksheet.getCells();
for (Object o2 : cells) {
Cell cell = (Cell) o2;
if (cell.getType() == CellValueType.IS_STRING && !cell.isFormula()) {
font = cell.characters(0, cell.getStringValue().length() - 1).getFont();
} else {
font = cell.getStyle().getFont();
}
}
}
workbook.save("UroborosCL_PIP_01_Basic-aa.xlsx");
UroborosCL_PIP_01_Basic.xlsx.zip (504.1 KB)
Regards,
Zeljko