Reading an existing excel file

Mar 23, 2011 at 1: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 1:21 PM

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

Mar 23, 2011 at 1:38 PM

cool, I wll try that!