PDF417 Barcodes

edited 10:02PM in FastReport .NET
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 10:02PM
    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 10:02PM
    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 10:02PM
    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 10:02PM
    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