Apply a license key in IronXL for Python

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

The license key is a long string that ends with an expiry date. Please ensure this is copied correctly, with no spaces.

# Apply the license key to the IronXL library
# Replace 'YOUR_LICENSE_KEY' with your actual license key string
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
# Apply the license key to the IronXL library
# Replace 'YOUR_LICENSE_KEY' with your actual license key string
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
PYTHON

The most robust method of applying a license key is directly in your code, before the library is called.

# Set the license key for the IronXL library at the start of your program
# This helps to ensure that the library recognizes your license as soon as it is needed
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
# Set the license key for the IronXL library at the start of your program
# This helps to ensure that the library recognizes your license as soon as it is needed
IronXL.License.Key = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050"
PYTHON

For more options, including configuration via web.config and appsettings.json, please see the following FAQ page for more information:

IronXL License Keys - FAQs

Curtis Chau
技術作家

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。

準備好開始了嗎?
版本: 2025.9 剛剛發布