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 .NET Standard

The registration process is very simple and depends on which class of Barcode Professional for .NET Standard you're using in your project.

License Setting to BarcodeHtmlHelper class

Just specify the licenseOwner and licenseKey params of BarcodeHtmlHelper.EmbedBarcodeImage() method:

Important

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

@Html.Raw(BarcodeHtmlHelper.EmbedBarcodeImage("S="+Symbology.QRCode.ToString()+"&C=ABC12345", HtmlImageFormat.Png, "Sample Barcode", "", "", "LICENSE-OWNER", "LICENSE-KEY"))

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

License Setting to BarcodeProfessional class

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!

//ASP.NET Controller Sample

[HttpGet("{valueToEncode}")]
public IActionResult Get(string valueToEncode)
{
    Neodynamic.SDK.BarcodeCore.BarcodeProfessional.LicenseOwner = "LICENSE-OWNER";

    Neodynamic.SDK.BarcodeCore.BarcodeProfessional.LicenseKey = "LICENSE-KEY";

    //Create an instance of BarcodeProfessional class
    using (Neodynamic.SDK.BarcodeCore.BarcodeProfessional bcp = new Neodynamic.SDK.BarcodeCore.BarcodeProfessional())
    { 
        //Set the desired barcode type or symbology
        bcp.Symbology = Neodynamic.SDK.BarcodeCore.Symbology.QRCode;
        //Set value to encode
        bcp.Code = valueToEncode;
        //Generate barcode image
        byte[] imgBuffer = bc.GetBarcodeImage(SkiaSharp.SKEncodedImageFormat.Png, 96);
        //Write image buffer to Response obj
        return File(imgBuffer, "image/png");
    }
}

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