Specific XLS file conversion to XLSM resulted corrupted output file

Hi,
I am trying to convert the attached XLS file to XLSM where the output file is getting corrupted.
Please do the needful.
Template-XLS-XLSM-File-Corruption.zip (11.4 KB)

@vedavyas.velaga,

Thanks for the sample file.

Please notice, I am able to reproduce the issue as you mentioned by converting your template file to XLSM file format. I found the output XLSM file is corrupted and MS Excel prompts error messages when opening the file into it:
e.g.
Sample code:

Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook("e:\\test2\\Template-XLS-XLSM-File-Corruption.xls"); 
workbook.Save("e:\\test2\\out1.xlsm", Aspose.Cells.SaveFormat.Xlsm);

I have logged a ticket with an id “CELLSNET-51898” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@vedavyas.velaga,

This is to inform you that your issue has been resolved now. The fix will be included in our upcoming release (Aspose.Cells v22.9) scheduled in the second week of September 2022. You will also be notified when the next version is released.

The issues you have found earlier (filed as CELLSNET-51898) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi