Show / Hide Table of Contents

License Registration

When you buy a commercial version of Barcode Professional you are provided with license information to register your licensed copy of Neodynamic Barcode Professional for WPF.

The registration process is very simple and can be accomplished in two ways:

Codeless License Setting

Codeless License Setting involves adding the license info in the Application's Configuration file (.config). The license info must be specified in the **BarcodeProWPF70LicenseOwner* and BarcodeProWPF70LicenseKey entries in the <appSettings> section of *.config file. Example:

<configuration>
  <appSettings>
    <add key="BarcodePro70WPFLicenseOwner" value="LICENSE-OWNER"/>
    <add key="BarcodePro70WPFLicenseKey" value="LICENSE-KEY"/>
  </appSettings>
  ...
</configuration>

Using License Properties in code

In the class you're using BarcodeProfessional, set the LicenseOwner and LicenseKey static (shared in VB) properties with the license info you've received.

Important

Please, keep in mind that the license info is case-sensitive!

' WPF SAMPLE

Imports Neodynamic.WPF

Class Window1 

    Private Sub Window1_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
        ' If you are using BarcodeProfessional class...
        BarcodeProfessional.LicenseOwner = "LICENSE-OWNER"
        BarcodeProfessional.LicenseKey = "LICENSE-KEY"

        ' If you are using BarcodeBuilder class...
        BarcodeBuilder.LicenseOwner = "LICENSE-OWNER"
        BarcodeBuilder.LicenseKey = "LICENSE-KEY"
    End Sub
End Class


' ASP.NET SAMPLE

Imports Neodynamic.WPF

Partial Class Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

     ' If you are using BarcodeProfessional class...
         BarcodeProfessional.LicenseOwner = "LICENSE-OWNER"
         BarcodeProfessional.LicenseKey = "LICENSE-KEY" 

     ' If you are using BarcodeBuilder class...
     BarcodeBuilder.LicenseOwner = "LICENSE-OWNER"
         BarcodeBuilder.LicenseKey = "LICENSE-KEY"

    End Sub
End Class
// WPF SAMPLE

using Neodynamic.WPF;

public partial class Window1 : Window
{
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        // If you are using BarcodeProfessional class...
        BarcodeProfessional.LicenseOwner = "LICENSE-OWNER";
        BarcodeProfessional.LicenseKey = "LICENSE-KEY";

        // If you are using BarcodeBuilder class...
        BarcodeBuilder.LicenseOwner = "LICENSE-OWNER";
        BarcodeBuilder.LicenseKey = "LICENSE-KEY";
    }
}




// ASP.NET SAMPLE

using Neodynamic.WPF;

public partial class _Default : System.Web.UI.Page 
{

       protected void Page_Init(object sender, EventArgs e)
       {
            // If you are using BarcodeProfessional class...
            BarcodeProfessional.LicenseOwner = "LICENSE-OWNER";
            BarcodeProfessional.LicenseKey = "LICENSE-KEY";

            // If you are using BarcodeBuilder class...
            BarcodeBuilder.LicenseOwner = "LICENSE-OWNER";
            BarcodeBuilder.LicenseKey = "LICENSE-KEY";
       }

}

After you set these properties the TRIAL legend should disappear from the generated image.

Back to top Copyright © 2003- Neodynamic SRL
http://www.neodynamic.com