Setting License
How to apply a license to work with the selected Wordize module.
What is this page about?
This page explains how to apply a Wordize license in your .NET application, including loading licenses from files, streams, or embedded resources to activate full functionality, as well as applying a license to multiple Wordize products at once.
Full information on licenses and subscriptions is described on the page Licensing and Subscription – there you can learn more about license types and subscriptions, as well as how to get Evaluation Access.
How to Apply a License
To activate your purchased Wordize product, use the SetLicense method and one of the options below.
Use a license file:
- Obtain the license file (.lic) after purchase.
- Load and apply for the license in your application:
Wordize.Settings.SetLicense("Wordize.Net.lic");Use a stream:
- Load the license from a stream:
Wordize.Settings.SetLicense(MemoryStream(File.ReadAllBytes("Wordize.Net.lic")));Use an embedded resource:
- Add the license file as an embedded resource into your project.
- In your code, invoke SetLicense, which passes only the short name of the resource file.
Important to note:
Each product requires its own license. Ensure all required licenses are applied before usage.
How to Apply Licenses for Multiple Wordize Products
Each Wordize product has its own separate license and expiration date.
When purchasing multiple products, the following should be considered:
- Each product requires an individual license, which means licenses may have different expiration dates.
- You can activate multiple licenses at the same time, allowing you to use different Wordize products simultaneously.
- If using multiple products together, ensure that all required licenses remain active to avoid disruptions when working on complex tasks.
The following code example shows how to activate multiple licenses from files – for example, for the Wordize Core for .NET and Wordize Web for .NET modules:
Wordize.Settings.SetLicense("Wordize.Net.lic");
Wordize.Settings.SetLicense("Wordize.Web.Net.lic");