Using Aspose.Cells version 8.2.2.3, overwriting existing custom properties produces a corrupted workbook.
Error message on worbook open :
"Excel found unreadable content in ‘x’. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.
Workbook can be anything. Attached workbook I used is blank, newly created.
Sample code :
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(“CustomProperties.xlsx”);
wb.CustomDocumentProperties.Add(“SomeProperty”, “SomePropertyValue”);
wb.Save(“CustomProperties.xlsx”);
Run the code twice on the same workbook to overwrite existing custom property value.
Removing existing custom property first before writing does not corrupt the workbook.
Thanks,
Dean