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

DeleteRow() causing error

Apr 14, 2010 at 5:10 PM

When using worksheet.DeleteRow(11, 1, True) it fails saying that the Key does not exist. There are definitely rows in the worksheet as it works fine if you delete the one above this row. I have also tried to delete it backwards, ie delete from the bottom up.

Any ideas what can be going wrong here?

Thanks

Travis

Apr 14, 2010 at 8:28 PM

It's a bug in the DeleteRow method. I'll try to fix it to the next check-in

Jan

Apr 15, 2010 at 9:18 AM

Jan,

Thanks. For now I will need to revert back to the old ExcelPackage project.

Apr 15, 2010 at 5:31 PM

Try the new source and see if it solves your problem.

Apr 15, 2010 at 5:32 PM

Jan,

 

Will do thanks.

Apr 19, 2010 at 12:20 PM

Jan,

Unfortunately it still fails.

Apr 19, 2010 at 2:56 PM

ok, create an issue and upload the code / sheet that fails, so i can have a look at it.

Jan