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

When using templates, file is locked during reading

Oct 18, 2013 at 3:12 PM
Hello, thank you for the great work.

When using a template file I recognized it is opened read write. After looking at source I noticed it's using System.IO.File.ReadAllBytes to read the content. ReadAllBytes opens it for readwrite. I refer to this article:

So is there a reason for locking the file while reading? I use the template for reporting and it's just a matter of time this will occur on users side. I've tested the suggestion in the article and it works fine, but I'm sure I don't have enough knowledge of EPPlus to say if it's safe to use or not.

Thank you