Please help me: how to add reference for ExcelPackage
?
In the following line
using (var excel = new ExcelPackage(FileUpload1.PostedFile.InputStream))
I'm getting this error:
The type or namespace name 'ExcelPackage' could not be found (are you missing a using directive or an assembly reference?)
I have already called Install-Package DocumentFormat.OpenXml
为此需要工具添加Install-Package EPPlus
-----> Library -----> package console
You can install package from "Package Manager condole" like below: For specific verrsion
PM > Install-Package EPPlus -Version 4.5.2.1
without version
PM > Install-Package EPPlus
Generating excel refer blog: http://sforsuresh.in/generating-and-formatting-excelsheet-in-c-using-epplus/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.