Skip to content

Class EPPlusLicense

Namespace: OfficeOpenXml
Assembly: EPPlus.dll

Represents a class to set the license

public class EPPlusLicense

Inheritance

object ← EPPlusLicense

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Constructors

EPPlusLicense()

public EPPlusLicense()

Properties

ExtendUnderRenewal

If your subscription has expired past the LicenseValidTo date, you can set this flag to get a 15 additional days to renew the license.

public bool ExtendUnderRenewal { get; set; }

Property Value

bool

LegalName

The name used for a commercial organization

public string LegalName { get; }

Property Value

string

LicenseInfo

License information from the license key. If no license key has been set, this property contains null.

public EPPlusLicenseInfo LicenseInfo { get; }

Property Value

EPPlusLicenseInfo

LicenseKey

The license key used for a commercial license.

public string LicenseKey { get; }

Property Value

string

LicenseType

The type of license used.

public EPPlusLicenseType? LicenseType { get; }

Property Value

EPPlusLicenseType?

Source

The source where the license was set.

public EPPlusLicenseSource? Source { get; }

Property Value

EPPlusLicenseSource?

Methods

RemoveActiveLicense()

Removes the active license.

public void RemoveActiveLicense()

SetCommercial(string)

If you use EPPlus within a commercial organization or for commercial purposes. This requires a license for EPPlus that can be purchased at https://epplussoftware.com

public void SetCommercial(string licenseKey)

Parameters

licenseKey string

The license key you received with your license.

See Also

https://epplussoftware.com/en/Home/GettingStartedLicenseKey

SetNonCommercialOrganization(string)

Use this option if you use EPPlus within a noncommercial organization. Using this option will tag all created document with the Polyform Noncommercial license. https://polyformproject.org/licenses/noncommercial/1.0.0/

public void SetNonCommercialOrganization(string organizationName)

Parameters

organizationName string

The noncommercial organizations name

SetNonCommercialPersonal(string)

Use this license if you use EPPlus for personal noncommercial usage. Using this option will tag all created document with the Polyform Noncommercial license. See https://polyformproject.org/licenses/noncommercial/1.0.0/

public void SetNonCommercialPersonal(string fullName)

Parameters

fullName string

Your name. This name will go into the Office Properties