Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > C# Barcode Generation Guide > C#.NET Planet Barcode Generator Tutorial
Download Barcode for .NET Suite Trial

C#.NET PLANET Barcode Generator Component

How to Generate & Make Planet Barcode in C#.NET Application
  • Simple-to-use C#.NET barcode generator with full support for .NET 2.0 and above
  • Completely written in managed C# and can be programmed with both C# & VB class library
  • Generate PLANET barcode in Visual C#.NET projects & Console application
  • Generate high-quality Planet barcode in Crystal Reports & RDLC Reports
  • Able to generate Planet image in .NET class with simple Visual C# codes
  • No barcode fonts or any third party tool required
  • Offer support for barcode rotation and automatic checksum generation
About C#.NET Linear Planet Barcode
Planet, a numeric-only linear barcode, is short for Postal Alpha Numeric Encoding Technique barcode. So, this barcode is used by postal offices to track and arrange the mailed letters and parcels.
Planet can encode 12 or 14 digits (including check digit, which can be automatically computed by our C# barcode generator for .NET) and all those information is encoded in half- and full-height bar. Thus, similar to Code 2 of 5 and Postnet barcode, the spaces in Planet just work as separators instead of information-carriers.
Planet Barcode Generation Using C#.NET Class
  1. Integrate either "Barcodelib.Barcode.ASP.NET.dll" or "BarcodeLib.Barcode.WinForms.dll" into your project reference.
  2. Add the same C#.NET barcode generator dll to your Toolbox item.
  3. Then, generate Planet barcode with following sample C# codes.
     BarcodeLib.Barcode.Linear planet = new BarcodeLib.Barcode.Linear();
planet.Type = BarcodeType.PLANET;
planet.Data = "12345678901";

planet.AddCheckSum = true;
planet.BarWidth = 2;
planet.LeftMargin = 14;
planet.RightMargin = 14;

span class="rem">// You could also adjust other settings of Planet, like text font, image size, background color etc.

// Save Planet barcode image into your system
planet.drawBarcode("c:/planet.jpeg");

span class="rem">// Save Planet barcode & output to byte array
byte[] barcodeInBytes = planet.drawBarcodeAsBytes();

// Save Planet barcode to Graphics object
Graphics graphics = ...;
planet.drawBarcode(graphics);

// Save Planet barcode and output to HttpResponse object
HttpResponse response = ...;
planet.drawBarcode(response);

// Save created Planet barcode to Stream object
Stream stream = ...;
planet.drawBarcode(stream);
Above Free Planet sample codes are built in Visual C# 2005
Planet C# Barcode Generation in ASP.NET Web Services
  1. Download & unzip the evaluation package and embed "Barcodelib.Barcode.ASP.NET.dll" it in your web project.
  2. Embed "Barcodelib.Barcode.ASP.NET.dll" in the VS Toolbox.
  3. Open the folder "barcode" and copy files "linear.aspx", "linear.aspx.cs" to your web folder.
  4. Drag "LinearASPNET" from the Toolbox and drop it on your aspx page.
  5. Click generated barcode image and change barcode type to Planet in the Properties Window or generate a Planet barcode with C# Planet Generating Code.
We also provide PLANET barcode encoding for IIS project, please see PLANET barcode encoding in IIS.
Planet C# Barcode Generation in .NET WinForms Project
  1. Find "BarcodeLib.Barcode.WinForms.dll" in the trial package and embed it into your windows project.
  2. Add "BarcodeLib.Barcode.WinForms.dll" to your Visual Studio Toolbox.
  3. Drag & drop "LinearWinForm" to your windows project.
  4. Adjust barcode type to Planet in the Properties Window or create a Planet barcode image with above C# Planet Generating Code.
Planet C# Barcode Generation DLL Supported Barcode Types
C# 1D Barcode Generation:
C# 2D Barcode Generation:
C#.NET Barcode Generator SDK for Linear Barcodes: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, EAN-8, EAN-13, Interleaved 2 of 5, ITF-14 (UPC Shipping Container Symbol), Code 128, EAN 128/GS1 128, MSI Plessey, Intelligent Mail, Planet, Postnet, RM4SCC (British Royal Mail), UPC-A, UPC-E.
C#.NET Barcode Generator SDK for 2D Barcodes: Data Matrix, PDF 417, QR Code.





Provides High Quality Barcode .NET Control, Barcode ASP.NET Control, Barcode C# Control, Barcode VB.NET Control, Barcode WinForms Control, PLANET .NET Control, PLANET C# Control, PLANET VB.NET Control, PLANET ASP.NET Control, PLANET Barcode Controls in Windows Forms .NET, Reporting Services, Crystal Reports, and RDLC Reports.