Exception while saving .xlsx using EPPLUS

Nov 24, 2011 at 7:59 AM

Hi All,

 I am trying to create an excel sheet using EPPLUS 2.9.0.1.

File is getting generated when I forced to save it, but before saving it is throwing an exception in this line,

xlPackage.Save();

sometimes  "The process cannot access the file because it is being used by another process" and

sometimes  " Error while save"..path" ".

 


Please let me know if you want any further information.

Thanks,

Madhusudhan

Coordinator
Nov 28, 2011 at 6:59 AM

Sounds like you have the file opened in another process (Excel or some other program) when you save.