After purchasing a Stimulsoft product, you need to activate the license for the components you are using. You can do this by specifying a license key or by downloading a file with the license key. Below is an example of activating the StiNetCoreDesigner component.

 

Index.cshtml.cs

...

//Activation with using license code

public class IndexModel : PageModel

{

static IndexModel()

{

Stimulsoft.Base.StiLicense.Key = "Your activation code...";

}

}

 

//Activation with using license file

public class IndexModel : PageModel

{

public IndexModel(IWebHostEnvironment webHostEnvironment)

{

var path = Path.Combine(webHostEnvironment.ContentRootPath, "Content\\license.key");

Stimulsoft.Base.StiLicense.LoadFromFile(path);

}

}

...

 

 

You can get a license key or download a file with a license key in the user's account. To log in to your account, please use the username and password specified when purchasing the product.