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

Load string or bytearray into Excelpackage?

Oct 16, 2012 at 8: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 2:11 PM
Edited Oct 18, 2012 at 2: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: