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

Free Support Forum - aspose.com

Index was outside the bounds of the array on .CSV file using .open method

Hello Support,

We are using version Aspose.Cells and when we use the following code on the attached file, we receive the exception of “Index was outside the bounds of the array”.

C# .Net code
//Open spreadsheet
Workbook wb = new Workbook();

Can you please advise why?

Thank you,

Hi Scott,

Thanks for your posting and using Aspose.Cells.

Please download and use the latest version: Aspose.Cells
for .NET v8.1.2.2
it does not throw any exception.

We have tested your file with the following code and it loaded your file successfully and converted it into xlsx format. I have also attached the output xlsx file for your reference.

Since you are using a very old version, therefore we strongly recommend you to upgrade your code and use the latest version. The recent versions are very much enhanced and contains many features. Besides all bug fixes are provided if they are replicated in latest version only. You can also take the help of this forum to upgrade your code quickly.


string filePath = @“F:\Shak-Data-RW\Downloads\ScottWontLoad.csv”;

Workbook workbook = new Workbook(filePath);

workbook.Save(“output.xlsx”, SaveFormat.Xlsx);