- Barcode Products
-
Guide
- Generate barcodes in ASP.NET
- Generate barcodes in .NET WinForms
- Generate barcodes in Visual C#.NET
- Generate barcodes in Visual Basic.NET
- Generate barcodes in Java
- Generate barcodes in Crystal Reports
- Generate barcodes in Reporting Service
- Generate barcodes in RDLC Report
- Generate Barcodes in BIRT Report
- Integration
- Knowledge
- Order Now
- About Us
- Easy to integrate USPS Intelligent Mail (OneCode) barcode generation component into your C#.NET Programs
- Completely written in C#.NET for .NET 2.0/3.0/4.0
- Support pixel, inch, cm to be used as the measurement for USPS Intelligent Mail (OneCode) barcode
- Simple to specify top, bottom, left, right margin surrounded USPS Intelligent Mail (OneCode) symbol
- Efficiently make USPS Intelligent Mail (OneCode) barcodes with X, Y dimension and barcode width& height to be adjusted
- Mature USPS Intelligent Mail (OneCode) barcode generating dll with royalty-free and perpetual developer license
Quick Jump:
Installation of .NET Barcode Generator in C# .NET
- Add BusinessRefinery.Barcode.Win.dll or BusinessRefinery.Barcode.Web.dll to your .NET project reference
- Add .NET Barcode Generator .NET Windows Control Library to .NET Visual Studio Toolbox
Setting USPS Intelligent Mail (OneCode) Barcode Size in C#.NET
C# USPS Intelligent Mail (OneCode) barcode provides a set of barcode size settings to specify you USPS Intelligent Mail (OneCode) barcodes. Please download C# barcode component and install, copy those following code to your Visual Studio:
Linear barcode = new Linear(); barcode.Symbology = Symbology.ONECODE; barcode.Code = "9876543210";
Basic
BarcodeUnit
BarcodeUnit is a unit of measure for all size related properties.
barcode.BarcodeUnit = BarcodeUnit.PIXEL;
USPS Intelligent Mail (OneCode) Barcode Width Related Settings
BarWidth
BarWidth, known as X dimension as well, is the minimum bar module width of USPS Intelligent Mail (OneCode) barcode.
barcode.BarWidth = 5;BarcodeWidth
BarcodeWidth is the USPS Intelligent Mail (OneCode) barcode image width, which is made up of right margin, USPS Intelligent Mail (OneCode) symbol and left margin. The class library will auto reset the barcode width if your setting is less than the minimum setting.
barcode.BarcodeWidth = 200;Left & Right Margin
LeftMargin is used to modify generated barcode image left margin, which is a white zone on the left of USPS Intelligent Mail (OneCode) symbol.
RightMargin is used to modify generated barcode image right margin, which is a white zone on the right of USPS Intelligent Mail (OneCode) symbol.
barcode.LeftMargin = 3; barcode.RightMargin = 5;
USPS Intelligent Mail (OneCode) Barcode Height Related Settings
BarHeight
BarHeight, known as Y dimension, is the USPS Intelligent Mail (OneCode) bar module height.
barcode.BarHeight = 5;BarcodeHeight
BarcodeHeight is the USPS Intelligent Mail (OneCode) barcode image height, which is made up of top margin, USPS Intelligent Mail (OneCode) symbol, text margin, text and bottom margin. The class library will auto reset the barcode height if your setting is less than the minimum setting.
barcode.BarcodeHeight = 150;Top & Bottom Margin
TopMargin is used for specifying generated barcode image top.
BottomMargin is used for specifying generated barcode image bottom margin.
barcode.TopMargin = 3; barcode.BottomMargin = 5;Text Margin
TextMargin is the white space between the USPS Intelligent Mail (OneCode) symbol and the human-readable text.
barcode.TextMargin = 20;Text Font
TextFont is used for setting fonts for human-readable characters in USPS Intelligent Mail (OneCode).
barcode.TextFont = new FontStyle("Arial", Font.PLAIN, 11);