6

Sorry to ask but how do you refernce EPPlus dll in a .NET project

Usually i just do something like using EPPlus; but did not work this time.

my research show

using OfficeOpenXml;
using OfficeOpenXml.Style;

I did not find it.

3 Answers 3

3

I fixed this by targeting the .net framework version 4

1

using OfficeOpenXml; is correct for EPPlus. Check the Object Browser :)

1

If Visual Studio is giving you grief over the using OfficeOpenXml;. You need to install NuGet Package Manager.

  • Simply go to the Visual Studio 2010 Menu > Tools
  • Select Extension Manager, Enter NuGet in the search box and click Online Gallery. Let it Retrieve information…
  • Select the retrieved NuGet Package Manager (you may have to do some scrolling to find it), click Download. Let it Download…
  • Click Install on the Visual Studio Extension Installer NuGet Package Manager. Wait for the installation to complete, and answer any prompts.
  • After the Package Manager is installed, you need to follow the prompt at the bottom of the Extension Manager window to restart Visual Studio.

After it opens back up, go to Visual Studio 2010 Menu > Tools > NuGet Package Manager > Manage NuGet Packages for Solution... And install EPPlus - Create advanced Excel spreadsheets using .NET.

This should get you set up reading Excel files!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.