Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

How to download the excel file ? #29

Open
rullymartanto opened this issue Jan 13, 2021 · 0 comments
Open

How to download the excel file ? #29

rullymartanto opened this issue Jan 13, 2021 · 0 comments

Comments

@rullymartanto
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant