Using IronWord License Keys

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

How to Get a License Key

Adding an IronWord license key allows you to deploy your project live without restrictions or watermarks.

You can buy a license key or sign up for a free 30-day trial key here.


Step 1: Download the Latest Version of IronWord


Step 2: Apply Your License Key

Set your license using code

Add this code to the startup of your application, before IronWord is used.

:path=/static-assets/word/content-code-examples/get-started/license-keys-apply.cs
IronWord.License.LicenseKey = "IRONWORD.MYLICENSE.KEY.1EF01";
IronWord.License.LicenseKey = "IRONWORD.MYLICENSE.KEY.1EF01"
$vbLabelText   $csharpLabel

Set your license using Web.Config or App.Config

To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in appSettings.

<configuration>
  <appSettings>
    <add key="IronWord.LicenseKey" value="IRONWORD.MYLICENSE.KEY.1EF01"/>
  </appSettings>
</configuration>
<configuration>
  <appSettings>
    <add key="IronWord.LicenseKey" value="IRONWORD.MYLICENSE.KEY.1EF01"/>
  </appSettings>
</configuration>
XML

There is a known licensing issue with IronWord versions released before 2024.3.5 on certain projects:

  • ASP.NET projects
  • .NET Framework version >= 4.6.2

The key stored in a Web.config file is NOT being picked up and used by the product. Visit the 'Setting License Key in Web.config' troubleshooting article to learn more.

Ensure that IronWord.License.IsLicensed returns true to verify the license.


Set your license key using a .NET Core appsettings.json file

To apply a key globally to your .NET Core application:

  • Add a JSON file to your project called appsettings.json in the root directory of your project.
  • Add an IronWord.LicenseKey key to your JSON config file. The value should be your license key.
  • Ensure that the file properties include Copy to Output Directory: Copy always.

File: appsettings.json

{
    "IronWord.LicenseKey": "IRONWORD.MYLICENSE.KEY.1EF01"
}

Step 3: Validate Your License Key

Verify the Installed License Key

To verify whether the license key has been applied correctly, you can check the IsLicensed property. Use the following code snippet:

:path=/static-assets/word/content-code-examples/get-started/license-keys-is-licensed.cs
// Check if the license key has been applied
bool licensed = IronWord.License.IsLicensed;
' Check if the license key has been applied
Dim licensed As Boolean = IronWord.License.IsLicensed
$vbLabelText   $csharpLabel

Validate the License Key

To ensure the validity of your license or trial key, you can use the following code snippet:

:path=/static-assets/word/content-code-examples/get-started/license-keys-is-valid.cs
// Check if a given license key string is valid
bool valid = IronWord.License.IsValidLicense("IRONWORD.MYLICENSE.KEY.1EF01");
' Check if a given license key string is valid
Dim valid As Boolean = IronWord.License.IsValidLicense("IRONWORD.MYLICENSE.KEY.1EF01")
$vbLabelText   $csharpLabel

If the return value is True, it means the key is valid, and you can proceed with using IronWord. However, if the return value is False, it indicates that the key is invalid.


Step 4: Getting Started with Your Project

To get started with IronWord, we highly recommend following our comprehensive tutorial on how to Get Started with IronWord. This tutorial offers detailed instructions and examples to help you grasp the basics of using IronWord.


Questions or Need Support?

To use IronWord in live projects, you'll require a paid or trial license key, which you can obtain by purchase a license. The trial license is available by visiting this link.

For a comprehensive collection of code examples, tutorials, licensing details, and extensive documentation, please visit the IronWord section on our website.

If you have any questions, feel free to reach out to support@ironsoftware.com.

Questions Fréquemment Posées

Comment puis-je obtenir une clé de licence pour mon projet C# ?

Vous pouvez acheter une clé de licence ou vous inscrire à une clé d'essai gratuite de 30 jours sur la page des licences de Iron Software.

Comment appliquer une clé de licence dans le code C# ?

Ajoutez votre clé de licence au démarrage de votre application en utilisant la propriété IronWord.License.LicenseKey.

Comment puis-je configurer une clé de licence en utilisant Web.Config ou App.Config ?

Ajoutez une clé dans la section appSettings de votre fichier Web.Config ou App.Config avec le nom IronWord.LicenseKey et votre clé de licence comme valeur.

Que dois-je faire si la clé de licence n'est pas reconnue dans les projets ASP.NET ?

Consultez l'article de dépannage sur la configuration d'une clé de licence dans Web.config si la clé n'est pas reconnue par les projets ASP.NET.

Comment définir la clé de licence dans une application .NET Core à l'aide de appsettings.json ?

Ajoutez une clé IronWord.LicenseKey avec votre valeur de licence au fichier appsettings.json dans le répertoire racine de votre projet.

Comment puis-je vérifier si ma clé de licence est correctement appliquée dans IronWord ?

Vérifiez la propriété IronWord.License.IsLicensed pour vous assurer que la clé de licence est installée correctement. Elle devrait retourner true si appliquée correctement.

Comment valider la validité de ma clé de licence ?

Utilisez la propriété IronWord.License.IsValid pour confirmer si votre clé de licence est toujours valide.

Où puis-je trouver des tutoriels et de la documentation pour IronWord ?

Visitez le tutoriel complet sur 'Démarrer avec IronWord' pour des instructions détaillées et des exemples.

Comment puis-je obtenir de l'assistance pour les problèmes ou les questions concernant IronWord ?

Contactez le support Iron Software à support@ironsoftware.com pour toute question ou assistance dont vous pourriez avoir besoin.

Puis-je utiliser IronWord sans clé de licence ?

L'utilisation de IronWord sans clé de licence entraînera des restrictions ou des filigranes. Obtenez un essai gratuit ou achetez une licence pour utiliser IronWord sans limitations.

IronWord est-il entièrement compatible avec .NET 10 et les clés de licence peuvent-elles être appliquées de la même manière ?

Oui. IronWord prend en charge .NET 10 (ainsi que les versions 9, 8, 7, 6, .NET Core, .NET Standard 2.0+ et .NET Framework 4.6.2+) et les clés de licence fonctionnent de la même manière sous .NET 10, que ce soit par le biais du code, des fichiers Web.config/App.config ou du fichier appsettings.json. ([ironsoftware.com](https://ironsoftware.com/csharp/word/get-started/windows/?utm_source=openai))

Curtis Chau
Rédacteur technique

Curtis Chau détient un baccalauréat en informatique (Université de Carleton) et se spécialise dans le développement front-end avec expertise en Node.js, TypeScript, JavaScript et React. Passionné par la création d'interfaces utilisateur intuitives et esthétiquement plaisantes, Curtis aime travailler avec des frameworks modernes ...

Lire la suite
Prêt à commencer?
Nuget Téléchargements 25,807 | Version : 2025.11 vient de sortir