After opening xlsx file with aspose.cells for Java, setting a fontName for shape in it and saving a file, when I try to open file in Excel I get a warning pop-up on opening. Can you help me with this?
Workbook workbook = new Workbook(“Book1.xlsx”); Shape shape = workbook.getWorksheets().get(0).getShapes().get(0); Font font = shape.getFont(); font.setName(font.getName()); workbook.save(“Book1-target.xlsx”);
I have tested your scenario/case using your sample code with v17.8.3, it works fine. The output file (attached) is opened fine into MS Excel 2007, 2013 without any warning message. file1.zip (8.4 KB)
Good to know that it figures out your issue. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.