barcode writer sdk for .NET >  generate barcodes for C#.NET apps in Visual Studio  >  USPS POSTNET barcode c# generator


C# .NET POSTNET Barcode Generator

print, create postnet bar code with C# for .NET applications in Visual Studio


Overview

Keepdynamic.com supply POSTNET C# .NET Barcode Generator for the creation of POSTNET barcodes in your C# .NET framework projects.

Related solutions for generating USPS Postnet barcode in C#.NET



Features

Technologies of POSTNET C# .NET Creator

C# .NET POSTNET Barcode Creator helps you generate POSTNET barcodes that you probably need in your C# .NET applications. It is entirely built in .NET 2.0 and supports .NET 2.0, 3.0, 3.5, 4.0. Bar coding of POSTNET in C# .NET classes and console applications is easy. Using this C# .NET Barcode Creator POSTNET barcodes can also be easy to be generated in ASP.NET web projects, Microsoft Windows Forms, SQL Server Reporting Services (SSRS), and Crystal Reports.

Barcode images generated by C# .NET POSTNET Barcode Creator

Image formats supported by this POSTNET C#.NET barcode Creator include gif, jpeg, png, bmp, and tiff. Barcodes POSTNET can be rotated to 0, 90, 180, or 270 degrees based on specific requirements. The image size and other properties POSTNET may be adjusted to meet the users' specifications. High quality barcodes POSTNET are supported by this product without any distortion. Bearer bar for POSTNET barcode are easy to be generated.

Customization of C# .NET POSTNET Barcodes

Full functional features of C# .NET POSTNET Barcode Creator make the operation of barcode easy and simple. Using this POSTNET creator, the appearance of the human readable characters on POSTNET barcodes can be enabled or disabled. POSTNET C# .NET Barcode Creator provided the functionality of configuring the colors of foreground and background. It is easy to encode the returns, tabs and other functions into your C# .NET applications. Bearer bar is also easy to be generated for POSTNET.

POSTNET C# .NET Source code and Developer License

Complete C# .NET POSTNET Barcode Creator source code is provided with the purchasing of unlimited developer license. Royalty is free if purchasing a developer license.


Generate USPS Postnet in C#.NET

//Create a new linear barcode object in C#.NET,
//Change the symbology type to Postnet barcode

BarCode barcode = new BarCode();
barcode.SymbologyType = SymbologyType.Postnet;

/*
 Assign the value that are encoded into Postnet symbology.

 Encodable character set of Postnet is as follow,
   Numeric characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

 Valid data length of Postnet symbology are 5, 6, 9, or 11 digits, excluding the check digit
*/

barcode.CodeText = "123456789";

/*
 Enable the checksum for the Postnet symbology
 so that the barcode engine calculates the check digit automatically
*/

barcode.EnableChecksum = true;

//Set the Postnet barcode graphic measurements as Pixel
barcode.GraphicsUnit = KeepDynamic.Barcode.Generator.GraphicsUnit.Pixel;

//Assign the values of bar width and bar height to Postnet barcode
barcode.X = 2;
barcode.Y = 75;

//Set the margins around the Postnet barcode symbology
barcode.LeftMargin = 0;
barcode.RightMargin = 0;
barcode.TopMargin = 0;
barcode.BottomMargin = 0;

//Set the resolution of Postnet barcode image that is drawn to,
//Change the Postnet barcode image orientation

barcode.Resolution = 72;
barcode.Rotate = Rotate.Rotate0;

//Display the characters encoded into the barcode symbology
//Set the font style of characters encoded into the barcode

barcode.DisplayCodeText = true;
barcode.CodeTextFont = new Font("Arial", 11f, FontStyle.Regular);

//Set barcode drawing image format to PNG in C#
//Generate Postnet barcode image in C#

barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-postnet-csharp.png");