PDF417 Barcodes

Hi, I'm new to FastReports barcoding. I was wondering if anyone had a small snippet or example I could use to create a PDF417 barcode. Anything would be very much appreciated.

Thanks

Comments

  • edited July 2013
    I created PDF417 barcode in C# with this tool. Here is the sample code:
    using System;
       using System.Collections.Generic;
       using System.Text;
       using OnBarcode.Barcode;
       using System.Drawing.Imaging;
       using System.Drawing;
    
    
       PDF417 pdf417 = new PDF417();
    
       // Barcode data to encode
       pdf417.Data = "OnBarcode";
       // PDF-417 data mode
       pdf417.DataMode = PDF417DataMode.Text;
       // PDF-417 rows & columns
       pdf417.RowCount = 5;
       pdf417.ColumnCount = 5;
    
       /*
       * Barcode Image Related Settings
       */
       // Unit of meature for all size related setting in the library. 
       pdf417.UOM = UnitOfMeasure.PIXEL;
       // Bar module width (X), default is 3 pixel;
       pdf417.X = 2;
       // Bar module width vs height
       pdf417.XtoYRatio = 0.3333333f;
       // Barcode image left, right, top, bottom margins. Defaults are 0.
       pdf417.LeftMargin = 0;
       pdf417.RightMargin = 0;
       pdf417.TopMargin = 0;
       pdf417.BottomMargin = 0;
       // Image resolution in dpi, default is 72 dpi.
       pdf417.Resolution = 72;
       // Created barcode orientation. 
       //4 options are: facing left, facing right, facing bottom, and facing top
       pdf417.Rotate = Rotate.Rotate0;
    
       // Generate PDF-417 and encode barcode to gif format
       pdf417.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
       pdf417.drawBarcode("C:\\pdf417.gif");
       
       /*
       You can also call other drawing methods to generate barcodes
                 
       public void drawBarcode(Graphics graphics);
        
       public void drawBarcode(string filename);
        
       public Bitmap drawBarcode();
        
       public void drawBarcode(Stream stream);
                 
       */
    
    For more detailed info, read this: how to create barcode in C#. You will be more clear.
  • edited 9:27PM
    KCCoder wrote: »
    Hi, I'm new to FastReports barcoding. I was wondering if anyone had a small snippet or example I could use to create a PDF417 barcode. Anything would be very much appreciated.

    Thanks
    it can be generated using many platforms, just take this pdf-417.net control for example.you may have a look
  • edited 9:27PM
    I don't know what platform you are generating barcodes on. Source about NET. and C# are provided above. I want to add PDF-417 in Crystal Report for WinForms with VB.NET, you may follow the detailed tutorial and try. Good luck!
  • edited 9:27PM
    which programming language do you prefer to create barcode: java, csharp, visualbasic.
    here are detailed tutorial to create pdf417 in c# and create pdf417 in java.
    simple and quick to create the any type of barcodes.
  • edited 9:27PM
    There are many resource on google for creating PDF 417.
    I don't know which platform did you use, but common resources are follow:
    create PDF 417 in .net application
    PDF 417 generation library for C#.net
    Hope these will be helpful.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.