- Create high quality Code 93 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 Code 93 image
- Provide cm, inch, and pixel as the unit of measure
- Capable of printing Code 93 with minimum X
- Also be capable of drawing maximum X in a fixed Code 93 image width
vb.net barcode generator source code,
vb.net barcode generator source code,
code 128 crystal reports 8.5,
barcode generator github c#,
gs1 barcode parser c#,
barcode generator in c# windows application
Code 93, also named as ANSI/AIM Code 93, USS Code 93, USS 93, Code 9/3, USS-93, Code 93 Extended. More details about Code 93 in KA.Barcode Generator for VB.NET:
Code 93 Image in VB.NET and
Code 93 Encoded Data in VB.NET.
generate barcode image using java,
barcode scanner use c#,
onbarcode excel barcode add in,
javascript barcode scanner example,
free barcode download for excel,
how to generate barcode in c# mvc
Code 93 VB.NET Generator Related Product Software
C#.NET Code 93 Generator
Java Code 93 Generator
.NET Code 93 Winforms Generator
ASP.NET Code 93 Generator
Code 93 Size Setting Introduction
Width Setting
The width of Code 93 barcode image is influenced by the parameters in the following table.
Parameter |
Parameter Description |
Range |
Related Property |
Image Width(W) |
The width of the Code 93 image |
- |
BarCodeWidth |
Module Bar Width (X) |
The width of the module bar in Code 93 |
X ≥ 1 pixel |
X |
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 |
LeftMargin |
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 |
RightMargin |
Supplement note: the quantity of data characters also has an influence over the width of the barcode. See VB.NET Code 93 Size Setting - Image Width Setting.
Height Setting
The height of Code 93 barcode image is made up by Top Margin width, Bottom Margin width, Bar Height, space between barcode and text, and the height of Text.
Parameter |
Parameter Description |
Range |
Related Property |
Image Height (H) |
The height of the image |
H ≥ 5mm or 15%W |
BarCodeHeight |
Bar Height (Y) |
The height of the bar |
- |
Y |
Top Margin Width |
The height of the top margin |
≥ 0 |
TopMargin |
Bottom Margin Width |
The height of the bottom margin |
≥ 0 |
BottomMargin |
Text Height |
The height of the human readable text font |
- |
Text Font |
Text Margin |
The space between symbol and text |
≥ 0 |
TextMargin |
In the following section, you will see how to make changes to these parameters in .NET projects using VB.NET.
How to Use VB.NET Code 93 Generator Size Setting Properties
VB.NET Code 93 Generator provides VB.NET developers with a full set of properties for Code 93 size setting.
Input the following VB Code to use VB.NET Code 93 Generator where Code 93 bar code image is needed.
Dim code93 As KeepAutomation.Barcode.Bean.BarCode
code93 = New KeepAutomation.Barcode.Bean.BarCode()
code93.Symbology = KeepAutomation.Barcode.Symbology.Code93
Input a string value for CodeToEncode, which will be encoded as data in your Code 93. Pay attention to the data encoding instruction for Code 93.
code93.CodeToEncode = "Code 93"
BarcodeUnit
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.
code93.BarcodeUnit = BarcodeUnit.Pixel
X
Property X (Float; Default: 1) is used in Code 93 module bar width setting. Try to set X using VB.NET code as follows:
code93.X = 2
Now, the width of a bar in Code 93 has been changed from 1 pixel (as default) to 2 pixel. You can make it even greater if wider bars are in need.
Y
Property Y (Float; Default: 50) sets the bar height of the Code 93.
code93.Y = 40
The width of bars in Code 93 has been changed from 50 pixels (as default) to 40 pixels. You can make it even greater or smaller.
BarCodeHeight and BarCodeWidth
VB.NET Code 93 Generator is also equipped with functional properties BarCodeHeight (Float; Default: 0) and BarCodeWidth (Float; Default: 0) to set the size of the whole Code 93 bar code image.
code93.BarCodeHeight = 70
code93.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 Code 93 compatible with Code 93 barcode specification.
TopMargin, BottomMargin, LeftMargin, and RightMargin
Code 93 VB.NET Generator will generate a quiet zone at each end of the Code 93 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).
code93.TopMargin = 10
code93.BottomMargin = 10
code93.LeftMargin = 10
code93.RightMargin = 10
TextMargin
Property TextMargin (Float; Default: 6 pixel) controls the width of space between Code 93 bar code and the human readable text below the barcode.
code93.TextMargin = 10