ChartDirector License Installation
*** Note ***: This page is for ChartDirector
6.3 or later. For earlier versions of ChartDirector, please refer to
ChartDirector License Installation for version 6.2 or
earlier.
ChartDirector Developer License Installation
- Create an ASCII file using Notepad or other text editor, and put the license key in it.
The whole file should contain only the license key. Save the file as "chartdir.lic".
Note that some text editors, such as Notepad, may
automatically append ".txt" to the filename. If file is saved as "chartdir.lic", it may end up
as "chartdir.lic.txt". Furthermore, you may not see the ".txt" extension because some File
Explorers may "hide known extensions". Please double confirm the file is really "chartdir.lic"
without the ".txt" extension.
- On Windows, please copy the "chartdir.lic" to the windows directory (normally "c:\windows").
On Linux/MacOS, please copy the "chartdir.lic" to the "/etc" directory.
The above directory is a system directory and may
require administrative privileges for write access. If you are copying using the command prompt,
please use "Run As administrator" to start the command prompt (for Windows), or use "sudo" (for
Linux/MacOS).
If you cannot copy to a system directory (eg. due to lack of administrative privilege), there
are other ways depending on the programming language and operating system edition of
ChartDirector. Please refer to the Installation section of the ChartDirector documentation
included in your ChartDirector distribution for details.
ChartDirector Redistribute License Installation
For applications distributed as compiled code, you can embed the license key into the complied
code by calling the setLicenseCode API in the code as follows:
Programming Language | setLicenseCode Usage |
C++ | Chart::setLicenseCode("Your-License-Key"); |
C#/Java | Chart.setLicenseCode("Your-License-Key"); |
VB.NET | Chart.setLicenseCode("Your-License-Key") |
VB6/VBA/VBScript | Call cd.setLicenseCode("Your-License-Key") |
Python/PHP | setLicenseCode("Your-License-Key"); |
Perl | perlchartdir::setLicenseCode("Your-License-Key"); |
In the code above, please replace "Your-License-Key" with your actual license key. The API needs
to be called once per application instance before using ChartDirector. (There is no harm if it
is called more than once.) Typically, it is called during application initialization.
Upgrade and Software Subscription License Installation
The upgrade key for a "Upgrade and Software Subscription License" is installed by appending it
to an existing ChartDirector license key of the same type. For example, if you have a license
key for "ChartDirector Developer License for Windows/Linux/FreeBSD", you can append an upgrade key
for that type of license to the license key. This will upgrade the license key by one major
version, and extend the upgrade period of the license key by one year. You can append multiple
upgrade keys to extend the license key for multiple versions and years.
Support
If you cannot install the license, please try
Trouble-Shooting ChartDirector License Installation to see if it
can solve the problem. If you need further help, please contact
support@advsofteng.net,