We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Save workbook as XLSX throws "Index was outside the bounds of the array" exception in .NET

Hi,
I’m testing the Aspose.Cells trial version, an I’m getting that issue when I try save the workbook as .xlsx file.
That issue is happening with some workbooks, not with all workbooks.
Just for informative, I’m opening an excel file that it was store on my local pc, and it was create by MS excel.
Could you send me more information about the reason of this issue? I will need that information for my analysis about the library.

Exception: Index was outside the bounds of the array.
Stack Trace:
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at Aspose.Cells.Workbook.Save(String fileName)
at Sheets.Controllers.AsposeController.AddNameAsposeService(String fileName) in C:\BNA\Test\Sheets\Sheets\Controllers\AsposeController.cs:line 70

Thanks in advance.
Regards.
Diego.

@diegoar27,

Thanks for providing us details.

Please provide us your template file and paste your sample code to reproduce the issue on our end, we will check it soon.