KA.Barcode for .NET Suite
How to Generate Planet in C# application
How to generate & draw Planet barcode images in C#, ASP.NET web applications, and windows forms

C#.net barcode generator: how to create, generate, print Planet linear barcode in C# with free example



  • Planet generation in C# .NET applications
  • Easy-to-use & integrate controls completely written in managed C#
  • Generate Planet and other linear & 2D barcodes in C# class, such as QR Code in C#, Data Matrix in C#, Code 2 of 5 in C#, Code 39 in C#, Intelligent Mail in C#, EAN-128 in C#, Identcode in C#
  • Draw Planet in C# ASP.NET web forms
  • Create Planet in .NET Windows Forms applications
  • Generate Planet in stream object, in graphics object, and image formats
  • Print and save Planet as gif, jpeg, png, tiff, and bitmap files using C#
PLANET, is also named as USPS PLANET Barcode, USPS Confirms Service Barcode.
C# PLANET barcode generator is a .NET Planet generation function of KeepAutomation .NET Barcode Suite, a high quality barcode generator component which enables you to easily and efficiently generate Planet and other linear & 2D barcode types in various .NET development environments, such as Windows Forms and ASP.NET, etc.

how to generate barcode in c# web application, how to generate barcode in java swing, free barcode maker for excel, how to print barcode in crystal report in c#.net, barcode scanner for java, barcode in c# windows application

With .NET Barcode Generator Suite you can instantly generate and save Planet in a variety of image formats in C# program, including PNG, BMP, GIF, JPEG, TIFF and so on. For more details about Planet C# Generation, please refer to:

PLANET Barcode Solutions

Besides C# .NET PLANET Generator, KeepAutomation provides other advanced PLANET barcode solutions, including

VB.NET PLANET Generator - generating PLANET in VB.NET

Java PLANET Generator - generating PLANET in java

Reporting Services PLANET - generating PLANET in Reporting Services 2005, 2008

Android PLANET Generator - creating PLANET barcode in Android

iPhone PLANET Generator - printing PLANET barcode in iPhone

iPad PLANET Generator - generating PLANET barcode in iPad

PLANET Barcode Fonts - creating PLANET in barcode fonts

Apart from Planet, .NET C# Barcode Generator also supports other linear and 2D barcode symbols, including: C# postnet, C# Code 11, C# Code 93, C# ISSN, C# UPC-A, C# PDF 417, C# Data Matrix, etc.
How to Generate PLANET in C# Applications?

How to Install PLANET Barcode Control

  • Download KeepAutomation C# Planet Generator

  • Add "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" to your C# project reference.

    1. "project" - "Add Reference" - choose "Browse" in the pop-up window
    2. locate your "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" - click "OK"
    3. Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references.

How to Generate PLANET in Visual C# Class

        using KeepAutomation.Barcode.Bean;
        
        //Create BarCode object in C#
        BarCode planet= new BarCode();  
        
        //Set barcode symbology type to Planet              
        planet. Symbology = Symbology. Planet; 
         
        //Set PLANET encoding valid data: 11 or 13 numeric digits from 0 - 9.  
        planet.CodeToEncode = "11223344556"; 
        
        //Set PLANET image size
        
        planet.BarcodeUnit = BarcodeUnit.Pixel;    // Unit of measure, pixel, cm and inch supported. 
        planet.DPI = 72;                           // PLANET image resolution in dpi
        planet.X = 3;                              // PLANET bar module width (X dimention)
        planet.Y = 60;                             // PLANET bar module height (Y dimention)
        planet. BarCodeWidth=200;                  // PLANET barcode image width
        planet.LeftMargin = 0;		           // Image left margin size, minimum value is 10X.
        planet.RightMargin = 0;	                   // Image right margin size, minimum value is 10X.
        planet.TopMargin = 0;		           // PLANET image top margin size
        planet.BottomMargin = 0;	           // PLANET image bottom margin size
        planet.Orientation = Orientation.Degree0;  // Orientation, 90, 180, 270 degrees supported.
        Planet.ShortTallRatio = 0.4f;              // Short bar height vs tall bar height
        
        //Set PLANET human readable text style
        
        planet.DisplayText = true;                 // Display human readable text
        planet.TextFont = new Font("Arial", 10f, FontStyle.Regular);
        planet.TextMargin = 6;                     // Space between barcode and text
        
        //Generate PLANET barcodes in image GIF format
        planet.generateBarcodeToImageFile("barcode-planet-csharp.gif");    
         
        //Create PLANET barcodes in Stream object
        planet.generateBarcodeToStream(".NET System.IO.Stream Object"); 
        
        //Draw & Print PLANET barcodes to Graphics object
        planet.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");
        
        //Generate PLANET barcodes & write to byte[] 
        byte[] barcodeInBytes = planet.generateBarcodeToByteArray();
        
        //Generate PLANET barcodes & encode to System.Drawing.Bitmap object 
        Bitmap barcodeInBitmap = planet.generateBarcodeToBitmap();
        
        Other image formats including PNG, BMP, TIFF and JPG are also available to suit your needs.