Search code examples
c#nuget

How to add ExcelPackage reference in C#


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


Solution

  • Add Install-Package EPPlus for this u need Tool----->Library----->package console