Error: file is locked after using Cells.DeleteRow(x)


if i put : Cells.DeleteRow(16);
and then : excel.Save(“report.xls”, SaveType.OpenInBrowser, FileFormatType.Default, this.Response);

msg error: report.xls is locked for editing
that means file is in use
can you help me?



Which version are you using?


If you removed Cells.DeleteRow(x), did it work fine?
If yes, could you send me an email? I will send you an internal fix for this issue.


it worked fine.
please send me the fix version to


I have sent it to you. Please have a try.


Really a strange problem. It works all fine in my machine. Could you post more code here? Or you can send it to me by email. If you use a designer file(template), please also send it to me.

Thanks for your cooperation.