How to create Numly (ESN, Electronic Serial Number) barcode using Bytescout BarCode SDK for .NET - ByteScout

How to create Numly (ESN, Electronic Serial Number) barcode using Bytescout BarCode SDK for .NET

  • Home
  • /
  • Articles
  • /
  • How to create Numly (ESN, Electronic Serial Number) barcode using Bytescout BarCode SDK for .NET
Output barcode screenshot (Numly symbology)

Numly barcode screenshot

Numly symbology. Numly barcode (Also known as ESN, Electronic Serial Number). This barcode is a unique identifier that allows an author or publisher to assign to content and track licensing of each id assignment. Numly Numbers are useful if you wish to identify each electronic distributed copy of any form of electronic media. Numly Numbers can also act a third-party content submission time stamps to aid in copyright proving instances and emails. The length of value to encode is fixed to 19 digits.

Important: you can also use BarCode Windows Forms or Web ImageControl instead. To use the Windows Formscontrol in Visual Studio please open Toolbox and open “Bytescout Software” tab and drag-n-drop “BarCode” control into your WinForms or ASP.NET application (in design mode)

How to create Numly barcode:

Visual Basic:

Imports Bytescout.BarCode

Module Module1

Sub Main()
‘ Create new barcode
Dim barcode As New Barcode()

‘ Set symbology
barcode.Symbology = SymbologyType.Numly

‘ Set value
barcode.Value = “1234567890123456789”

‘ Save barcode to image
barcode.SaveImage(“result.png”)

‘ Show image in default image viewer
Process.Start(“result.png”)
End Sub

End Module

C#:

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

using Bytescout.BarCode;

namespace Sample
{
class Program
{
static void Main(string[] args)
{
// Create new barcode
Barcode barcode = new Barcode();

// Set symbology
barcode.Symbology = SymbologyType.Numly;

// Set value
barcode.Value = “1234567890123456789”;

// Save barcode to image
barcode.SaveImage(“result.png”);

// Show image in default image viewer
Process.Start(“result.png”);
}
}
}

Tutorials:

prev
next