Show / Hide Table of Contents

Class EPPlusLicense

Represents a class to set the license

Inheritance
System.Object
EPPlusLicense
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml
Assembly: EPPlus.dll
Syntax
public class 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.

Declaration
public bool ExtendUnderRenewal { get; set; }
Property Value
Type Description
System.Boolean

LegalName

The name used for a commercial organization

Declaration
public string LegalName { get; }
Property Value
Type Description
System.String

LicenseInfo

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

Declaration
public EPPlusLicenseInfo LicenseInfo { get; }
Property Value
Type Description
EPPlusLicenseInfo

LicenseKey

The license key used for a commercial license.

Declaration
public string LicenseKey { get; }
Property Value
Type Description
System.String

LicenseType

The type of license used.

Declaration
public EPPlusLicenseType? LicenseType { get; }
Property Value
Type Description
System.Nullable<EPPlusLicenseType>

Source

The source where the license was set.

Declaration
public EPPlusLicenseSource? Source { get; }
Property Value
Type Description
System.Nullable<EPPlusLicenseSource>

Methods

RemoveActiveLicense()

Removes the active license.

Declaration
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

Declaration
public void SetCommercial(string licenseKey)
Parameters
Type Name Description
System.String licenseKey

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/

Declaration
public void SetNonCommercialOrganization(string organizationName)
Parameters
Type Name Description
System.String organizationName

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/

Declaration
public void SetNonCommercialPersonal(string fullName)
Parameters
Type Name Description
System.String fullName

Your name. This name will go into the Office Properties

In This Article
Back to top Generated by DocFX