Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2009
    Posts
    14
    Rep Power
    0

    Default How to create a barcode

    Hi Everyone,

    I have one problem i need to print a bar code where the number contains like 2001, 2002, 2003,..... n+ so the bar code should be printed and below should be the numbers say me how to create this and how to add the same barcode to jpeg file........ thanks for your help in advance.........

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,436
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by naveen.dpt2007 View Post
    Hi Everyone,

    I have one problem i need to print a bar code where the number contains like 2001, 2002, 2003,..... n+ so the bar code should be printed and below should be the numbers say me how to create this and how to add the same barcode to jpeg file........ thanks for your help in advance.........
    This is one of the links that showed up when I googled for "Java barcode".

    kind regards,

    Jos

  3. #3
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    368
    Rep Power
    5

    Default

    There is a simple trick!

    Friend of mine told me after I spent
    a lot of time discovering API for barcode !

    Use barcode font :D

    I found font for download here:
    Barcode Font Font | dafont.com

    Extract font from zip you have downloaded,
    and paste it in FONTS in your Control Panel (for Windows user)

    Now open some text processor, MS Word for example,
    write your number 2001, select number and change font to
    BarcodeFont

    You will see barcode bars and your number below them :)

    Now, to see your number 2001 with this barcode font in browser use this tag:

    Java Code:
    <p><font face="barcode font" color="green" size = 18>2001</font></p>

    If you need more functionality
    u can use barcode API called barbecue:

    Barbecue project

    cheers!

Similar Threads

  1. How to create the Jvm using JDK?
    By Sungron in forum New To Java
    Replies: 4
    Last Post: 02-01-2010, 10:50 AM
  2. PdfBox and barcode fonts
    By alexre2005 in forum New To Java
    Replies: 5
    Last Post: 12-03-2009, 02:59 PM
  3. how do i get input from barcode reader?
    By anthrax in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 04-09-2009, 03:48 PM
  4. How to create a SWT Tree
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-07-2008, 04:54 PM
  5. Create XML From XSD
    By Jack in forum XML
    Replies: 1
    Last Post: 07-09-2007, 12:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •