在 IronXL for Python 中應用授權金鑰

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

授權金鑰是一個以到期日期結尾的長字串。請確保正確複製,不能有空格。

IronXL.License.LicenseKey = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050";
PYTHON

在您的程式碼中,在調用庫之前,最穩健的方法是直接應用許可證密鑰。

IronXL.License.LicenseKey = "IRONXL-MYLICENSE-KEY-RENEW.SUPPORT.01.JAN.2050";
PYTHON

有關更多選項,包含 web.config 和 appsettings.json,請參閱此常見問題頁面以獲取更多資訊:

https://ironsoftware.com/csharp/excel/how-to/license-keys/