Xceed Chart for WinForms v4.4 Documentation
How to license the component once you purchase
Welcome to Xceed Chart for WinForms v4.4 > Installation Instructions > How to license the component once you purchase

Getting your registered license key

If you have purchased a registered license key, here is how the licensing process works:

  1. Receive your registered license key at the email address used during the purchase.

  2. Set the Licenser.LicenseKey property with this license key. See the LicenseKey property section below for details.

  3. Compile your application and deploy it.

If you have purchased a previous version of the chart control and do not wish to take advantage of the new features in this version, simply use your current registered license key in your code. Please note: if you attempt to use a new feature after having set an old license key in your code, an exception will be thrown and you will not be able to use the feature. Bug fixes in a newer version will be available even if you choose to use an older license key. 

If you do not have a registered license key, please contact Xceed at 1-800-865-2626, ext. 228, or send an email to sales@xceed.com to purchase a license or to have your license key resent to you if you have lost it.

LicenseKey property

The LicenseKey property of the Licenser class must be set with a valid license key, before any other method of your Xceed component is called. If you use an invalid or expired license key, fail to license the control with a registered license key after the trial period, or license it in the wrong place in your code, an exception will be thrown at runtime 

We recommend that you set the LicenseKey property in the main entry point of the application so that all the charts used in your project will be licensed. For example, C# users can set the LicenseKey property in the static main function. VB.NET users can set the LicenseKey property in the constructor of the main form or in the "Sub Main" procedure. 

If the chart is used in a DLL project (no entry point available), it is recommended that you set the LicenseKey property in a static constructor of a class that will be accessed systematically before any chart is instantiated, or you can simply set the LicenseKey property immediately before you instantiate an instance of a chart. 

If you are using the Windows Forms version of the chart, the LicenseKey property needs to be set as follows in C# (using your valid license key):

C#  
Xceed.Chart.Licenser.LicenseKey = "CHTXX-XXXXX-XXXXX-XXXX";

If you are using the ASP.NET (Web Forms) version of the chart, the LicenseKey property needs to be set as follows in the Global.asax Application_Start event:

HTML  
Xceed.Chart.Server.Licenser.LicenseKey = ""CHWXX-XXXXX-XXXXX-XXXX";

Xceed's .NET products are currently distributed for both .NET 4 and .NET 3.5; the product version numbers for these builds are different.
However, only keys whose prefix contains .NET 4.0 build version numbers are distributed, which can be used to unlock both the .NET 4 and
the corresponding .NET 3.5 version of the product.