Skip to content

hueifeng/EPPlus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download EPPlus from nuget Build status

EPPlus 5 beta

Build status

Announcement: new license model from version 5

EPPlus has from this new major version changed license from LGPL to Polyform Noncommercial 1.0.0.

With the new license EPPlus is still free to use in some cases, but will require a commercial license to be used in a commercial business.

This is explained in more detail here.

Commercial licenses, which includes support, can be purchased at https://www.epplussoftware.com/.

LicenseContext parameter must be set

With the license change EPPlus has a new parameter that needs to be configured. If the LicenseContext is not set, EPPlus will throw a LicenseException (only in debug mode).

This is a simple configuration that can be set in a few alternative ways:

1. Via code

// If you are a commercial business and have
// purchased commercial licenses use the static property
// LicenseContext of the ExcelPackage class :
ExcelPackage.LicenseContext = LicenseContext.Commercial;

// If you use EPPlus in a noncommercial context
// according to the Polyform Noncommercial license:
ExcelPackage.LicenseContext = LicenseContext.NonCommercial;

using(var package = new ExcelPackage(new FileInfo("MyWorkbook.xlsx")))
{

}

2. Via appSettings.json

  {
    "EPPlus": {
      "ExcelPackage": {
          "LicenseContext": "Commercial"
          }
      }
  }

3. Via app/web.config

<appSettings>
    <!--The license context used-->
    <add key="EPPlus:ExcelPackage.LicenseContext" value="NonCommercial" />
</appSettings>

4. Set the environment variable 'EPPlusLicenseContext'

This might be the easiest way of configuring this. Just as above, set the variable to Commerical or NonCommercial depending on your usage.

Important! The environment variable should be set at the user level.

New features in EPPlus 5

EPPlus 5 comes with a set of new features, see https://www.epplussoftware.com/Developers/Features

Beta version

Note that this is a beta of a new major version, with many new features and a rewritten/refactored codebase. Please report issues and feedback in our new issue tracker

Improved documentation

EPPlus 5 has new, separate sample projects for .NET Core and .NET Framework respectively. There is also an updated developer wiki. The work with improving the documentation will continue, feedback is highly appreciated!

Nuget feed for latest builds

During the beta period and moving forward the latest builds from the EPPlus develop branch can be fetched from this Nuget feed

About

EPPlus 5-Excel spreadsheets for .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%