This project has moved. For the latest updates, please go here.

"Part does not exist" error saving document using GetAsByteArray

May 5, 2015 at 8:11 AM
Hi there,

I started using EPPlus and everything went fine until I tried to use the GetAsByteArray method to save a document to byte array:

using (MemoryStream memoout = new MemoryStream()) {
memoout.Write(datato, 0, datato.Length);
    using (ExcelPackage destExcel = new ExcelPackage(memoout))
{
    return destExcel.GetAsByteArray();
}
}

The compilation fails on the last line with the "Part does not exist." error.

Cheers,
Andrii