Unable to save the macro enabled excel file (.xlsm)

Hi,

We are trying to save one excel file which is macro enabled (.xlsm). But unfortunately we are getting error every time.

The code we use as below.

Workbook.Save(HttpContext.Current.Response, fileName + ".xlsm", ContentDisposition.Attachment,

new OoxmlSaveOptions(SaveFormat.Xlsm));

Please help .

Hi,

Thanks for your posting and using Aspose.Cells.

Please download and try the latest version: Aspose.Cells
for .NET v7.7.2.1
and see if it resolves your issue.

If your issue still persists, then please provide us your source xlsm file and the sample code replicating this issue. We will look into it and update you asap.