We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Error: offset and length were out of bounds for the array

Hi,

I am using XLSIO to add a worksheet, delete a worksheet multiple times from a workbook (Excel file). In my application, the same Excel file will be opened and closed multiple times to add or delete a worksheet.

The code works fine for the first 5 times or so and then I get the following error:

"Error adding Excel report - offset and length were out of bounds for the array or count is greater than the number of the elements from index to the end of the source collection."

See attached file with the code for adding the Excel and deleting the worksheet or file.

Any help would be great!!

Thanks!

Test86.zip

1 Reply

MW Melba Winshia Syncfusion Team April 26, 2007 07:20 AM UTC

Hi Rekha,

Your Direct-Trac incident #33585 has been updated which has been created with the same issue.

Kindly let me know if you have any other questions.

Thanks,
Melba

Loader.
Live Chat Icon For mobile
Up arrow icon