在 IronXL for Python 中套用授權金鑰

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

授權金鑰是一串長字串,末尾附有到期日期。 請確保內容已正確複製,且無多餘空格。

# 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

應用授權金鑰最穩妥的方法,是在呼叫函式庫之前,直接在程式碼中進行設定。

# 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

如需更多選項(包括透過 web.configappsettings.json 進行的設定),請參閱以下常見問題頁面以獲取更多資訊:

IronXL 授權金鑰 - 常見問題

Curtis Chau
技術撰稿人

Curtis Chau 擁有卡爾頓大學(Carleton University)的電腦科學學士學位,專精於前端開發,並精通 Node.js、TypeScript、JavaScript 及 React。他熱衷於打造直觀且美觀的用戶介面,喜歡運用現代框架,並創建結構完善、視覺上吸引人的手冊。

除了開發工作之外,Curtis 對物聯網(IoT)抱有濃厚興趣,致力於探索整合硬體與軟體的創新方法。閒暇時,他喜歡玩遊戲和開發 Discord 機器人,將對科技的熱愛與創意相結合。

準備開始了嗎?
版本: 2026.6 just released
Still Scrolling Icon

還在捲動嗎?

想要快速證明?
執行範例 觀看您的資料變成試算表。