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

Hello Support,

We are using version Aspose.Cells 4.8.2.0 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();
wb.Open(sFileName);
____________________________________

Can you please advise why?

Thank you,
Scott

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.

C#


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


Workbook workbook = new Workbook(filePath);

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