workbook.Save ArgumentOutOfRangeException

in WebForms





Workbook workbook = new Workbook();


workbook.Open(“demo.xlsm”, FileFormatType.Excel2007Xlsm);





workbook.Save(“opedemo.xlsm”, Aspose.Cells.FileFormatType.Excel2007Xlsm, Aspose.Cells.SaveType.OpenInExcel, context.Response); - ArgumentOutOfRangeException





workbook.Save(“opedemo.xlsm”, Aspose.Cells.FileFormatType.Excel2003, Aspose.Cells.SaveType.OpenInExcel, context.Response); - ok, but it is not required

Hi,


Well, I think you are using some older version of the product for which we are not sure and neither we can evaluate your issue in the older version of the product. We recommend you to kindly try our latest version: Aspose.Cells for .NET v8.3.1 with the following sample code:
e.g
Sample code:

Workbook workbook = new Workbook(stringFileName);

workbook.Save(HttpContext.Current.Response, “outdemo.xlsm”, ContentDisposition.Attachment, new OoxmlSaveOptions(SaveFormat.Xlsm));


Let us know if you still find the issue with the latest version.

Thank you.