- Create high quality Leitcode Png, Gif, Jpeg, Tiff, or Bmp files in .NET projects using VB.NET
- Provide properties X and Y to set the width and height of the module bar
- Support the width setting of surrounding margins
- Support the width and height setting of the whole Leitcode image
- Provide cm, inch, and pixel as the unit of measure
- Capable of printing Leitcode with minimum X
- Also be capable of drawing maximum X in a fixed Leitcode image width
Leitcode, is also named as Deutsche Post Leitcode Barcode, German Postal 2 of 5 Leitcode, CodeLeitcode, Leitcode, Deutsche Post AG(DHL). More details about Leitcode in KA.Barcode Generator for VB.NET (Leitcode Barcode Library): Leitcode Image in VB.NET
and Leitcode Encoded Data in VB.NET
Leitcode VB.NET Generator Related Product Software
C#.NET Leitcode Generator
Java Leitcode Generator
.NET Leitcode Winforms Generator
ASP.NET Leitcode Generator
Barcode for RDLC .NET. How to Generate Barcodes in RDLC Using C#.NET. Encoding, Adjusting, &Printing Barcodes in RDLC Reports in C#.NET IDEs...
Leitcode Size Setting Introduction
The width of Leitcode barcode image is influenced by the Parameters in the following table.
||The width of the Leitcode image
|Module Bar Width (X)
||The width of the module bar in Leitcode
||X ≥ 1 pixel
|Left Quiet Zone Width (Q1)
||The space between the left edge of the image and the leftmost bar; Q1= 10 X + Left Margin Width
||Q1 ≥ 10X
|Right Quiet Zone Width (Q2)
||The space between the right edge of the image and the rightmost bar; Q2= 10 X + Right Margin Width
||Q2 ≥ 10X
Supplement note: the quantity of data characters also has an influence over the width of the barcode. See VB.NET Leitcode Size Setting - Image Width Setting.
The height of Leitcode barcode image is made up by Top Margin width, Bottom Margin width, Bar Height, space between barcode and text, and the height of Text.
|Image Height (H)
||The height of the image
||H ≥ 5mm or 15%W
|Bar Height (Y)
||The height of the bar
|Top Margin Width
||The height of the top margin
|| ≥ 0
|Bottom Margin Width
||The height of the bottom margin
||The height of the human readable text font
||The space between symbol and text
In the following section, you will see how to make changes to these Parameters in .NET projects using VB.NET.
How to Generate QR Code Image in VB.NET Projects. VB.NET source code to generate, print QR Code in different image formats using .NET Barcode...
View How to generate barcode in C#.NET using ASP.NET? ....
How to Use VB.NET Leitcode Generator Size Setting Properties
VB.NET Leitcode Generator provides VB.NET developers with a full set of properties for Leitcode size setting.
Input the following VB Code to use VB.NET Leitcode Generator where Leitcode bar code image is needed.
Dim leitcode As KeepAutomation.Barcode.Bean.BarCode
leitcode = New KeepAutomation.Barcode.Bean.BarCode()
leitcode.Symbology = KeepAutomation.Barcode.Symbology.Leitcode
Input a string value for CodeToEncode, which will be encoded as data in your Leitcode. Pay attention to the data encoding instruction for Leitcode.
leitcode.CodeToEncode = "1111111111111"
Property BarcodeUnit is in control of unit of measure. Before setting the bar width and image size, you should know for sure all the properties in the coming passages are based on the unit of measure. BarcodeUnit defaults as Pixel, and you can change it to cm or inch.
leitcode.BarcodeUnit = BarcodeUnit.Pixel
Property X (Float; Default: 1) is used in Leitcode module bar width setting. Try to set X using VB.NET code as follows:
leitcode.X = 2
Now, the width of a bar in Leitcode has been changed from 1 pixel (as default) to 2 pixel. You can make it even greater if wider bars are in need.
Property Y (Float; Default: 50) sets the bar height of the Leitcode.
leitcode.Y = 40
The width of bars in Leitcode has been changed from 50 pixels (as default) to 40 pixels. You can make it even greater or smaller.
BarCodeHeight and BarCodeWidth
VB.NET Leitcode Generator is also equipped with functional properties BarCodeHeight (Float; Default: 0) and BarCodeWidth (Float; Default: 0) to set the size of the whole Leitcode bar code image.
leitcode.BarCodeHeight = 70
leitcode.BarCodeWidth = 175
Note: If the setting of image size conflict with the settings in bar width or bar height, you can enable AutoResize to make the generated Leitcode compatible with Leitcode barcode specification.
TopMargin, BottomMargin, LeftMargin, and RightMargin
Leitcode VB.NET Generator will generate a quiet zone at each end of the Leitcode symbol automatically. The auto-generated quiet zone is 10X width. You can increase width of quiet zone by increasing the value of properties LeftMargin (Float; Default: 0) and RightMargin (Float; Default: 0). Also, the height of the image can be increased using TopMargin (Float; Default: 0) and BottomMargin (Float; Default: 0).
leitcode.TopMargin = 10
leitcode.BottomMargin = 10
leitcode.LeftMargin = 10
leitcode.RightMargin = 10
Property TextMargin (Float; Default: 6 pixel) controls the width of space between Leitcode bar code and the human readable text below the barcode.
leitcode.TextMargin = 10