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

EPPlus loses row height

Sep 2, 2014 at 3:47 PM
I have to use an existing excel and place contents on specific cells and give it to user through ASP.Net MVC site. The original excel should not be changed, so that it can be used as a template. The issue is though functionally everything works with EPPlus, the row heights of the original excel is completely lost in the resulting excel.
using (ExcelPackage package = new ExcelPackage(new FileInfo(NewFile), new FileInfo(Template)))
         {
            ExcelWorksheet excelSheet = package.Workbook.Worksheets[1];
            //Do all process, mainly set specific cell values
            package.Save();
         }
         //Return the new file to user