Load string or bytearray into Excelpackage?

Oct 16, 2012 at 7:49 PM

Is there a way to put a string or bytearray into an Excelpackage?

I already have a string of formated xml, with data and styles.  I don't want to have to recode it all, cell by cell in the excelpackage.



Oct 18, 2012 at 1:11 PM
Edited Oct 18, 2012 at 1:12 PM

If you have a memory stream of an existing xlsx file, just pass it to epplus constructor. When you open your file. some exceptions may be raised if your existing file was not created by epplus because its does not support all excel features.

Look at this thread: http://epplus.codeplex.com/discussions/256064