Setting name for shape font (#1105)

Hi,

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’m using Aspose.Cells 16.11.0 for Java.

Regards,
Zeljko

@Zeljko,

Thanks for the template file, sample code and screenshot.

Please try our latest version/fix: Aspose.Cells for Java v17.8.3.

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)

Hi,

Thanks for the answer. It works fine for the latest version.

Regards,
Zeljko

@Zeljko,

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.