KA.Barcode for .NET Suite
How to Generate Leitcode in C# application
How to generate & draw Leitcode barcode images in C#, ASP.NET web applications, and windows forms
  • Leitcode generation in C# .NET applications
  • Easy-to-use & integrate controls completely written in managed C#
  • Generate Leitcode and other linear & 2D barcodes in C# class, such as Identcode in C#, Planet in C#, Postnet in C#, USPS Intelligent Mail in C#, RM4SCC in C#, MSI Plessey in C#, QR Code in C#, PDF 417 in C# Data Matrix in C#
  • Draw Leitcode in C# ASP.NET web forms
  • Create Leitcode in .NET Windows Forms applications
  • Generate Leitcode in stream object, in graphics object, and image formats
  • Print and save Leitcode as gif, jpeg, png, tiff, and bitmap files using C#
Leitcode, is also named as Deutsche Post Leitcode Barcode, German Postal 2 of 5 Leitcode, CodeLeitcode, Leitcode, Deutsche Post AG(DHL). C# Leitcode barcode generator is a .NET Leitcode generation function of KeepAutomation .NET Barcode Suite, a high quality barcode generator component which enables you to easily and efficiently generate Leitcode and other linear & 2D barcode types in various .NET development environments, such as Windows Forms and ASP.NET, etc.

With .NET Barcode Generator Suite you can instantly generate and save Leitcode in a variety of image formats in C# program, including PNG, BMP, GIF, JPEG, TIFF and so on. For more details about Leitcode C# Generation, please refer to:

Leitcode Barcode Solutions

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

VB.NET Leitcode Generator - generating Leitcode in VB.NET

Java Leitcode Generator - generating Leitcode in java

Reporting Services Leitcode - generating Leitcode in Reporting Services 2005, 2008

Android Leitcode Generator - creating Leitcode barcode in Android

iPhone Leitcode Generator - printing Leitcode barcode in iPhone

iPad Leitcode Generator - generating Leitcode barcode in iPad

Leitcode Barcode Fonts - creating Leitcode in barcode fonts

Apart from Leitcode, .NET C# Barcode Generator also supports other linear and 2D barcode symbols, including: C# Identcode, C# EAN-8, C# UPC-E, C# Planet, C# Intelligent Mail, C# Data Matrix, C# Code 39, etc.
How to Generate Leitcode in C# Applications?

How to Install Leitcode In Visual C#

  • Download KeepAutomation C# Leitcode Generator

  • Add "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" to your C# project reference.

    1. "project" - "Add Reference" - choose "Browse" in the pop-up window
    2. locate your "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" - click "OK"
    3. Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references.

Matrix; Easily drag and drop the barcode control to print QR Code barcodes in ASP.NET webforms & ....
VB.NET Sample to Encode QR Code with Alphanumeric Mode. With Alphanumeric Mode, QR Code barcode generator for VB.NET encodes: Numeric digits 0 - 9;...
Details. How to create barcode in C#.NET using Client Report RDLC? How to Create QR Code in Class Library using C#? Lastly ....
more>

Generate Leitcode in Visual C# Class

        using KeepAutomation.Barcode.Bean;
        
        //Create BarCode object in C#
        BarCode codabar= new BarCode();
          
        //Set barcode symbology type to Leitcode              
        leitcode. Symbology = Symbology. Leitcode;  
        
        //Set Leitcode encoding code value. Valid data: numeric digits 0-9.  Data Length: 13 digits   
        leitcode.CodeToEncode = "1475523669854"; 
        
        //Set Leitcode image size
        
        leitcode.BarcodeUnit = BarcodeUnit.Pixel;    // Unit of measure, support pixel, cm and inch. 
        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. BarCodeWidth=200;                  // Leitcode barcode image width
        leitcode.LeftMargin = 0;		     // Image left margin size, minimum is 10X.
        leitcode.RightMargin = 0;	             // Image right margin size, minimum is 10X.
        leitcode.TopMargin = 0;		             // Image top margin size
        leitcode.BottomMargin = 0;	             // Image bottom margin size
        leitcode.Orientation = Orientation.Degree0;  // Orientation, 90, 180, 270 degrees supported.
        leitcode.WideNarrowRatio = 2.0f;             // Wide bar width vs narrow bar. 2.0f to 3.0f.
                                                          
        //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
    
        //Generate Leitcode barcodes in image GIF format
        leitcode.generateBarcodeToImageFile("barcode-leitcode-csharp.gif");  
           
        //Create Leitcode barcodes in Stream object
        leitcode.generateBarcodeToStream(".NET System.IO.Stream Object"); 
        
        //Draw & Print Leitcode barcodes to Graphics object
        leitcode.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");
        
        //Generate Leitcode barcodes & write to byte[] 
        byte[] barcodeInBytes = leitcode.generateBarcodeToByteArray();
        
        //Generate Leitcode barcodes & encode to System.Drawing.Bitmap object 
        Bitmap barcodeInBitmap = leitcode.generateBarcodeToBitmap();
        
        Other image formats including PNG, BMP, TIFF and JPG are also available to suit your needs.