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

Reading an existing excel file

Mar 23, 2011 at 2:05 PM


it seems that you can pass a template excel file name, when constructing

using (var package = new ExcelPackage(newFile, templateFile)) {}

I was just wondering why it's not possible to read in an excel file directly, and manipulate the original file itself?

Kind regards,



Mar 23, 2011 at 2:21 PM

You can, just open your file as a MemoryStream and pass to ExcelPackage constructor.

Mar 23, 2011 at 2:38 PM

cool, I wll try that!