Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
13 replies Latest Post - ‏2014-05-28T09:28:39Z by brentme
SystemAdmin
SystemAdmin
1138 Posts
ACCEPTED ANSWER

Pinned topic Printing barcode in Jasper Report using Font IDAutomation Code 39

‏2005-08-03T01:33:12Z |
Hi..

I am trying to display a barcode on my pfd, generated using Jasper Report. The jasper has the right font (IDAutomation.com Code 39) installed but when i pass a string of numbers, it displays as number not barcode.
How do i fix this?
Thank you.
Magen
Updated on 2013-02-22T03:53:28Z at 2013-02-22T03:53:28Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1138 Posts
    ACCEPTED ANSWER

    Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

    ‏2005-08-09T03:44:13Z  in response to SystemAdmin
    I'm not familiar with Jasper Reports, but it has come up in this forum before, and perhaps one of the other folks will be able to help.
  • SystemAdmin
    SystemAdmin
    1138 Posts
    ACCEPTED ANSWER

    Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

    ‏2008-04-24T11:17:59Z  in response to SystemAdmin
    hi,

    why not try java barcode from barcodelib.com. it is supports more than 25 linear and 2d barcode. and you can also use it to insert barcode image into jasper report.
    • JamesAnders
      JamesAnders
      1 Post
      ACCEPTED ANSWER

      Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

      ‏2012-01-13T06:35:38Z  in response to SystemAdmin
      Or take a look at this Link: Java Barcode
      package from Link: http://www.barcoderesource.com.
      • ShirleyLynette
        ShirleyLynette
        1 Post
        ACCEPTED ANSWER

        Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

        ‏2012-02-06T06:14:23Z  in response to JamesAnders
        Or this KA.Barcode Generator Jasper Report at http://www.keepautomation.com/guide/barcode_jasper_reports.html,
        which supports over 20 major linear and 2D barcode types like Code 39, Code 128, QR Codes, Data Matrix, PDF 417, etc.
        Hope it'd be helpful.
  • juluia
    juluia
    1 Post
    ACCEPTED ANSWER

    Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

    ‏2011-11-28T02:43:43Z  in response to SystemAdmin
    Hi, I have not used ID's product yet.I am sorry I cannot help you. But I wanna recommend you what I always use.That is onbarcode's FREE Java barcode product. It is really easy to use and implement.Hope it can help you!Good luck!
    http://www.onbarcode.com/products/java_barcode/
  • zac10
    zac10
    1 Post
    ACCEPTED ANSWER

    Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

    ‏2012-03-10T04:34:07Z  in response to SystemAdmin
    try this java barcode generator component for code39. it supports create barcode in Jasper reports
    • SystemAdmin
      SystemAdmin
      1138 Posts
      ACCEPTED ANSWER

      Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

      ‏2012-09-03T08:22:50Z  in response to zac10
      Recommend [url=http://www.macrobarcode.com/java-barcode/]MacroBarcode Barcode Generator for Java[/url
    • SystemAdmin
      SystemAdmin
      1138 Posts
      ACCEPTED ANSWER

      Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

      ‏2012-09-03T08:26:26Z  in response to zac10
      Recommend [url=http://www.macrobarcode.com/java-barcode/]MacroBarcode Barcode Generator for Java[/url]
    • SystemAdmin
      SystemAdmin
      1138 Posts
      ACCEPTED ANSWER

      Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

      ‏2012-09-03T08:37:04Z  in response to zac10
      Recommend <url=http://www.macrobarcode.com/java-barcode/>MacroBarcode Code 39 Java Generator</url>
  • cindy313
    cindy313
    1 Post
    ACCEPTED ANSWER

    Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

    ‏2013-08-27T02:17:15Z  in response to SystemAdmin

    maybe you can have a look at this i've ever used, barcode generator for java  which is easy to generate barcodes in Java class, easy to create barcodes in ireport,,,you may generate by following this guide of code 39 in java

  • anthonyzz
    anthonyzz
    1 Post
    ACCEPTED ANSWER

    Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

    ‏2013-10-22T07:11:06Z  in response to SystemAdmin

    I need to print Bar code labels using JasperReports reporting. I have properly design the Jasper report and I can preview it using iReport. But when I pass parameter to jasper report via Java application bar code report never generated.

    following code are used

    
    
    //Print barcode
    try 
    { 
       
    Class
    .
    forName
    (
    "com.mysql.jdbc.Driver"
    ).
    newInstance
    (); 
       
    Connection 
    conn 
    = 
    (
    Connection
    ) 
    
                
    DriverManager
    .
    getConnection
    (
    "jdbc:mysql:///miracleposdb"
    , 
    "root"
    , 
    "mysql"
    );
    
    
        
    String 
    reportSource 
    = 
    "../src/reports/barcode.jrxml"
    ; 
    /* Report Path*/ 
       
    Map
    <
    String
    , 
    Object
    > 
    params 
    = 
    new 
    HashMap
    <
    String
    , 
    Object
    >(); 
       params
    .
    put
    (
    "printid"
    , 
    lblbarcodeID
    .
    getText
    ());
    
        
    JasperReport 
    jasperReport 
    = 
    JasperCompileManager
    .
    compileReport
    (
    reportSource
    ); 
    /*Compiling  */
    
        
    JasperPrint 
    jasperPrint 
    = 
    JasperFillManager
    .
    fillReport
    (
    jasperReport
    , 
               params
    , 
    DB
    .
    MiraclePOS
    .
    connect
    ());  
    /*Filling report*/ 
       
    JasperViewer
    .
    viewReport
    (
    jasperPrint
    , 
    false
    ); 
      
    /*For Print*/
    
    
    } 
    catch 
    (
    Exception 
    e
    ) 
    {
    }
    

     

  • brentme
    brentme
    1 Post
    ACCEPTED ANSWER

    Re: Printing barcode in Jasper Report using Font IDAutomation Code 39

    ‏2014-05-28T09:28:39Z  in response to SystemAdmin

    Google is your best friend. You can find plenty of barcode creators for generating Code 39.