Apply a License Key in IronXL

This article was translated from English: Does it need improvement?
Translated
View the article in English

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
技术作家

Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。

除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。

准备开始了吗?
Nuget 下载 1,686,155 | 版本: 2025.11 刚刚发布