- Home
- Purchase
- Developer Tools
- BarCode Generator SDK
- BarCode Generator SDK for Javascript for Code 128
- BarCode Reader SDK
- PDF Generator SDK for Javascript
- PDF Extractor SDK
- PDF Renderer SDK
- PDF To HTML SDK
- PDF Viewer SDK
- Spreadsheet SDK
- Image To Video SDK
- Screen Video Capturing SDK
- SWF To Video and Images SDK
- Images Watermarking SDK
- Document SDK beta
- Misc Tools
- Desktop Utilities
- Download
- Support
- Company
How to create Deutsche Post Leitcode barcode (German Postal 2 of 5 LeitCode, LeitCode, CodeLeitcode, Deutsche Post AG DHL) using Bytescout.BarCode library for .NET
Output barcode screenshot (Deutsche Post Leitcode symbology)

Deutsche Post Leitcode symbology. Deutsche Post Leitcode (Also known as German Postal 2 of 5 LeitCode, LeitCode, CodeLeitcode, Deutsche Post AG (DHL)). This symbology is used by German Post (Deutsche Post AG) (Deutsche Frachtpost). The barcode gives an indication of the destination. The value to encode length is fixed to 13 digits. The value to encode must have the following structure: 5 digits for Postal Code (Postleitzahl, PLZ), 3 digits for Street ID/number, 3 digits for House number, and 2 digits for Product code.
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)
Visual Basic:
Imports Bytescout.BarCode
Module Module1
Sub Main()
' Create new barcode
Dim barcode As New Barcode()
' Set symbology
barcode.Symbology = SymbologyType.DeutschePostLeitcode
' Set value
barcode.Value = "1234567890123"
' 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.DeutschePostLeitcode;
// Set value
barcode.Value = "1234567890123";
// Save barcode to image
barcode.SaveImage("result.png");
// Show image in default image viewer
Process.Start("result.png");
}
}
}
Filed in:
BarCode Generator SDK
Tutorials:








