Apply a License Key in IronXL

The license key is a long string that includes an expiration date, marking the end of support. The license is perpetual, allowing you to continue using it for versions released before this date. Please ensure it is copied correctly, without any spaces.

Applying a License Key in Python

Below is an example of applying the IronXL license key in a Python script. Ensure to replace "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050" with your actual license key.

# Set the IronXL license key
IronXL.License.LicenseKey = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
# Set the IronXL license key
IronXL.License.LicenseKey = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
PYTHON

Applying a License Key in C#

The most robust method of applying a license key is directly in your C# code, before any calls to the IronXL library. Make sure to replace "IRONXL-MYLICENSE-KEY-1EF01-RENEW.SUPPORT.01.JAN.2050" with your actual license key.

// Set the IronXL license key
IronXL.License.LicenseKey = "IRONXL-MYLICENSE-KEY-1EF01-RENEW.SUPPORT.01.JAN.2050";
// Set the IronXL license key
IronXL.License.LicenseKey = "IRONXL-MYLICENSE-KEY-1EF01-RENEW.SUPPORT.01.JAN.2050";
' Set the IronXL license key
IronXL.License.LicenseKey = "IRONXL-MYLICENSE-KEY-1EF01-RENEW.SUPPORT.01.JAN.2050"
$vbLabelText   $csharpLabel

Additional Configuration Options

For more options, including configurations via web.config, app.config, and appsettings.json, please refer to the following article for more information: Using IronXL License Keys

Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...

Read More
Ready to Get Started?
Nuget Downloads 1,651,098 | Version: 2025.10 just released