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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:





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


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 03:20 AM

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.

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.