licenseDirectory Field

Summary

The server directory path where LEADTOOLS looks for the license file.

Syntax

JavaScript Syntax
LTHelper.licenseDirectory = (default value); 
TypeScript Syntax
static licenseDirectory: string; 

Field Value

The server directory path where LEADTOOLS looks for the license file. Default value is "LEADTOOLS".

Remarks

Refer to LEADTOOLS Nag Message for more information on obtaining and using a LEADTOOLS license.

A user may change this field's value from the default string "LEADTOOLS" to any desired string. This string will be interpreted as a directory in which to look for the LeadtoolsLicense.txt license file. The field may be set any number of times before the license is checked.

Changing the default location might be desirable in some situations. For example, if the application is an ASP.NET MVC and all the project resources are to placed in other locations than the root.

Examples:

  • This will search for the license in the directory above the project.

    lt.LTHelper.licenseDirectory = "../LEADTOOLS";

  • This will search for the license in [ProjectDir]/Custom/Directory/Here

    lt.LTHelper.licenseDirectory = "Custom/Directory/Here";

Additional notes:

  • The string provided must not have a trailing "/", as this character is added later

  • To set the directory to the root directory, pass the empty string "" instead of the keywords 'null' or 'undefined'.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly