VB.NET RM4SCC Generator Size Setting Tutorial
sample source code to generate linear RM4SCC images and adjust barcode size in VB.NET
- Easy to be installed in VB.NET IDEs
- Reusable .NET component
- Easy to define the width and height of a module bar in RM4SCC
- Supported unit of measure include Pixel, Cm, and Inch
- Print flexible margins around RM4SCC Symbol
- Support symbol and background color setting
- Generate RM4SCC in GIF, TIFF, BMP, PNG, and JPEG
RM4SCC, also known as Royal Mail 4-state Customer Code, U.K. Royal Mail, is height-modulated barcode symbology for use in automated mail sort process.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
RM4SCC Symbology Structure
W: the width of RM4SCC, controlled by property BarCodeWidth
X (X ≥ 1 pixel): the width of a module bar, controlled by property X
Q (Q ≥ 10X): the width of the quiet zone, related to property LeftMargin & RightMargin
More information about RM4SCC barcode settings in Excel Barcode Generator,please see:
RM4SCC VB.NET Generator Size Setting Tutorial
After RM4SCC VB.NET Generator installation, get it ready in VB.NET by placing the following statement:
Dim rm4scc As OnBarcode.Barcode.Linear
rm4scc = New OnBarcode.Barcode.Linear
rm4scc.Type = OnBarcode.Barcode.BarcodeType.RM4SCC
UOM
UOM is the controller of size setting unit. Pixel, Cm, and Inch are provided as its options. The default value of UOM is Pixel. For example, type the following statement to select Pixel as the unit of size setting measure:
rm4scc.UOM = OnBarcode.Barcode.UnitOfMeasure.PIXEL
X & Y
Property X (Type: Float; Default: 1) and Property Y (Type: Float; Default: 60) are used in RM4SCC barcode symbol size setting. X is for the module width setting, and Y controls the height of the bar.
Sample usage:
rm4scc.X = 2
rm4scc.Y = 70
BarCodeHeight & BarCodeWidth
Property BarCodeHeight (Type: Float; Default: 0) and Property BarCodeWidth (Type: Float; Default: 0) to set the size of the whole image.
Sample usage:
rm4scc.BarcodeHeight = 60
rm4scc.BarcodeWidth = 175
AutoResize
When the value of X, Y, BarCodeWidth, and BarCodeHeight conflict with each other, Property AutoResize (Type: bool; Default: False) should be enabled to solve the problem and make the RM4SCC 100% compatible with its symbology specification. See RM4SCC Barcode Size in VB.NET to know more usage of AutoResize.
Sample usage:
rm4scc.X = 2
rm4scc.BarcodeHeight = 60
rm4scc.AutoResize = True
TopMargin, BottomMargin, LeftMargin, & RightMargin
Using RM4SCC VB.NET Generator, a quiet zone with 10X width will be generated automatically at each side of the RM4SCC. When wider quiet zone is needed, you can increase the value of properties LeftMargin (Type: Float; Default: 0) and RightMargin (Type: Float; Default: 0). You can also create margins using TopMargin (Type: Float; Default: 0) and BottomMargin (Type: Float; Default: 0).
Sample usage:
rm4scc.TopMargin = 10
rm4scc.BottomMargin = 10
rm4scc.LeftMargin = 10
rm4scc.RightMargin = 10
TextMargin
Human readable text are required in almost every linear barcode symbology. Property TextMargin (Type: Float; Default: 6 pixel) is used to set the space between RM4SCC bar code and the human readable text below the barcode.
Sample usage:
rm4scc.TextMargin = 10