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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





59971 Apr 25,2007 02:27 PM UTC Apr 26,2007 07:20 AM UTC ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Rekha Mallavarapu
Asked On April 25, 2007 02:27 PM UTC


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!!



Melba Winshia [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon