Page tree
Skip to end of metadata
Go to start of metadata

Injecting a License Key

Unlike previous versions of OfficeWriter, v12 requires a license key to be directly added into the code of a project in order to take full advantage of .NET Core’s ability to target multiple operating systems.

The example below demonstrates how to add a license key to a project that uses ExcelWriter. Identical steps can also be taken for WordWriter and PowerPointWriter. 


using Softartisans.OfficeWriter.ExcelWriter;
ExcelApplication xla = new ExcelApplication();
xla.licensekey = “your-license-key”;

 

This process for adding a license key is not unique to Excel Application objects and can also be used for all template objects as well. 


  • No labels