Free Support Forum - aspose.com

Aspose.Cells Copy Bug

Hi,

We have a spreadsheet with over 15,000 rows and we get an error: "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" - this happens in the last line below:

Workbook workbookSource = new Workbook();

//Calling Open method of Workbook object to open an Excel file using its file path

workbookSource.Open(FilePath, FileFormatType.Default, password);

workbook.Copy(workbookSource);

Any help would be greatly appreciated.

Thanks!

Hi,

Thanks for considering Aspose.

Which version of Aspose.Cells for .Net you are using, Could you try the attached version.

If the problem still persists, kindly post your template file here. We will check and figure out your issue soon.

Thank you.