This project has moved and is read-only. For the latest updates, please go here.

Error reading a range after delete a row

Oct 13, 2011 at 3:35 PM

Hello guys.

I'm having a unusual problem with EPPlus and I'd like to share it with you, just to know if anybody has seen something like that.

I'm trying to read a range in a spreadsheet, collecting all data in a DataTable. Everything was working fine until I deleted a row in a sheet. I just deleted the row but the range is still valid, because there are more rows in that sheet. The error is "Index was outside the bounds of the array."

Do I need to rearrange the index in that spreadsheet? How can I do this?

Regards,

 

Jorge Olimpia

Oct 19, 2011 at 6:32 AM

Sounds like a bug. Create an issue and upload your template and some code to reproduce the error, so I can have a look at it.