KA.Barcode for .NET Suite
How to Generate Leitcode in VB.NET application
How to Generate Leitcode barcode images in VB.NET, ASP.NET web applications, and windows forms
  • Leitcode generation in Visual Basic .NET applications
  • Easy-to-use & integrate Leitcode Barcode Generation into VB.NET projects
  • Generate Leitcode and other linear barcodes & 2D barcodes in VB.NET class, such as Data Matrix in VB.NET, Identcode in VB.NET, RM4SCC in VB.NET, EAN 128 in VB.NET
  • Draw Leitcode using VB.NET in ASP.NET Web Forms
  • Create Leitcode with VB.NET in .NET Windows Forms applications
  • Generate Leitcode in stream object, in graphics object, and image formats using Visual Basic .NET
  • Print and save Leitcode as gif, jpeg, png, tiff, and bitmap files in VB.NET class
Leitcode, is also named as Deutsche Post Leitcode Barcode, German Postal 2 of 5 Leitcode, CodeLeitcode, Leitcode, Deutsche Post AG(DHL). VB.NET Leitcode Barcode Generator is a Leitcode Barcode Generation functions of KeepAutomation .NET Barcode Generator, which enables developers to easily generate Leitcode in VB.NET class, VB.NET Windows Forms and VB.NET ASP.NET web applications.

Leitcode Barcoe for VB.NET is simple to be installed into your VB.NET projects. And the Leitcode barcodes may be encoded into multiple image formats, including GIF, BMP, PNG, JPEG, TIFF. You may find more information about Leitcode generation in KA.Barcode Generator for VB.NET from:

Leitcode Barcode Solutions

Besides VB.NET Leitcode Generator, KeepAutomation provides other advanced Leitcode barcode solutions, including

C#.NET Leitcode Generator - generating Leitcode in C#.NET

Java Leitcode Generator - generating Leitcode in java

iPad Leitcode Generator - creating Leitcode barcode in iPad

Leitcode Barcode Fonts - printing Leitcode with barcode fonts


How to Install Leitcode Generator to VB.NET project

  • Download .NET Barcode free evaluation package and unzip it
  • Copy "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to the VB.NET project folder of your created application.
  • Add the DLL(s) to your VB.NET project reference:

    Method 1:

      1. In toolbar, click "Project" and then choose "Add Reference".

      2. Select "Browse" and choose the DLL(s). Click "OK".

    Method 2:

      1. In Solution Explorer, right-click your project. Then select "Add Reference".

      2. Select "Browse" and choose the DLL(s). Click "OK".

How to Generate Leitcode in VB.NET Class
  • How to Generate Leitcode in VB.NET Class

          Dim leitcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
          leitcode.Symbology = KeepAutomation.Barcode.Symbology.Leitcode
            
          //Set Leitcode encoding code value. Valid input: numeric digits 0-9. Length: 11 digits excluding the
          checksum digit.   
          leitcode.CodeToEncode = "88421115338"   
            
          //Set Leitcode image size
          leitcode.BarcodeUnit = BarcodeUnit.Pixel     // Unit of measure, Pixel, Cm and Inch supported. 
          leitcode.DPI = 72                            // Leitcode image resolution in DPI.
          leitcode.X = 3                               // Leitcode bar module width (X dimention)
          leitcode.Y = 60                              // Leitcode bar module height (Y dimention)
          leitcode.WideNarrowRatio = 2.0f              // Wide bar width vs narrow bar. Valid from 2.of 
                                                            to 3.0f inclusive.
          leitcode.LeftMargin = 0		           // Image left margin size, minimum is 10X.
          leitcode.RightMargin = 0	                   // Image right margin size, minimum is 10X.
          leitcode.Orientation = Orientation.Degree0   // Orientation: 90, 180, 270 degrees 
                                                                 
            
          //Set Leitcode human readable text style
          leitcode.DisplayText = true                   // Display human readable text
          leitcode.TextFont = new Font ("Arial", 10f, FontStyle. Regular)
          leitcode.TextMargin = 6                       // Space between barcode and text
          leitcode.generateBarcodeToImageFile("C://leitcode-vb-net.gif")
    
    
    
  • How to Draw and Encode Leitcode inImage Formats

    In addition to image GIF format, you can encode Leitcode into other image formats, like png, bmp, jpg, and tiff.

    Encode Leitcode into PNG image format

          Dim identcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
          leitcode.Symbology = KeepAutomation.Barcode.Symbology.Leitcode
          leitcode.CodeToEncode = "55266335214"
          leitcode.generateBarcodeToImageFile("C://leitcode-vb-net.png")
    						

    Encode Leitcode into BMP image format

          Dim identcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
          leitcode.Symbology = KeepAutomation.Barcode.Symbology.Leitcode
          leitcode.CodeToEncode = "36554478414"
          leitcode.generateBarcodeToImageFile("C:// leitcode-vb-net.bmp")