Style Changed After Saving ExcelPackage

Aug 6, 2012 at 5:32 PM

Using the following code to open and close an existing Excel document:

FileInfo existingFile = new FileInfo(excelFile);
using (ExcelPackage wb = new ExcelPackage(existingFile))

The style of the whole workbook is changed, any idea what might be happening here?

Before I start my Excel workbook has a white background with all of the grid lines showing.  After saving the file with EPPlus the background turns yellow and all of the grid lines are gone.

Aug 6, 2012 at 5:47 PM

Is this all your code?  If so, create an issue and upload xlsx file and your code.


Aug 6, 2012 at 6:27 PM

Right now it appears it is my Excel workbook and not the library.  Starting with an empty Excel file I can't reproduce the error.

Nov 9, 2012 at 2:33 PM

I have same issue, but I;ve created excel file from scratch and the problem remains...