EPPlus.Core.Extensions
EPPlus.Core.Extensions copied to clipboard
How to download the excel file ?
I try to read and manipulate xlsx file and dowload the file, how to do that ? and there is no Saveas method ?
FileInfo existingFile = new FileInfo(csvPath); using (ExcelPackage package = new ExcelPackage(existingFile)) { //get the first worksheet in the workbook ExcelWorksheet worksheet = package.Workbook.Worksheets.First(); worksheet.Protection.IsProtected = false; worksheet.Protection.AllowSelectLockedCells = false; package.Saveas() ? }
Thanks