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.

Preguntas Frecuentes

¿Cómo puedo obtener una clave de licencia para mi proyecto C#?

Puedes comprar una clave de licencia o registrarte para una clave de prueba gratuita de 30 días en la página de licencias de Iron Software.

¿Cómo aplico una clave de licencia en el código C#?

Agrega tu clave de licencia al inicio de tu aplicación usando la propiedad IronWord.License.LicenseKey.

¿Cómo puedo configurar una clave de licencia usando Web.Config o App.Config?

Añade una clave en la sección appSettings de tu archivo Web.Config o App.Config con el nombre IronWord.LicenseKey y tu clave de licencia como valor.

¿Qué debo hacer si la clave de licencia no es reconocida en proyectos ASP.NET?

Consulta el artículo de solución de problemas sobre la configuración de una clave de licencia en Web.config si la clave no está siendo reconocida por proyectos ASP.NET.

¿Cómo configuro la clave de licencia en una aplicación de .NET Core usando appsettings.json?

Agrega una clave IronWord.LicenseKey con tu valor de licencia al archivo appsettings.json en el directorio raíz de tu proyecto.

¿Cómo puedo verificar si mi clave de licencia está aplicada correctamente en IronWord?

Verifica la propiedad IronWord.License.IsLicensed para asegurar que la clave de licencia está instalada correctamente. Debería retornar verdadero si se aplica correctamente.

¿Cómo valido la validez de mi clave de licencia?

Utiliza la propiedad IronWord.License.IsValid para confirmar si tu clave de licencia sigue siendo válida.

¿Dónde puedo encontrar tutoriales y documentación para IronWord?

Visita el tutorial completo sobre 'Introducción a IronWord' para obtener instrucciones detalladas y ejemplos.

¿Cómo puedo obtener soporte para problemas o preguntas sobre IronWord?

Contacta al soporte de Iron Software en support@ironsoftware.com para cualquier pregunta o asistencia que necesites.

¿Puedo usar IronWord sin una clave de licencia?

Usar IronWord sin una clave de licencia resultará en restricciones o marcas de agua. Obtén una prueba gratuita o compra una licencia para usar IronWord sin limitaciones.

¿IronWord es totalmente compatible con .NET 10 y se pueden aplicar las claves de licencia de la misma manera?

Sí. IronWord es compatible con .NET 10 (junto con las versiones 9, 8, 7, 6, .NET Core, .NET Standard 2.0+ y .NET Framework 4.6.2+) y las claves de licencia funcionan de la misma manera en .NET 10 mediante código, Web.Config/App.Config o appsettings.json. ([ironsoftware.com](https://ironsoftware.com/csharp/word/get-started/windows/?utm_source=openai))

Curtis Chau
Escritor Técnico

Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien ...

Leer más
¿Listo para empezar?
Nuget Descargas 25,807 | Versión: 2025.11 recién lanzado