Date: Fri, 12 Aug 2005 13:46:37 +0200 From: Angelo Turetta <aturetta@bestunion.it> To: Lukman Jaji <myloveforyou@loveable.com> Cc: freebsd-java@freebsd.org Subject: Re: Barcode help Message-ID: <42FC8C1D.6080805@bestunion.it> In-Reply-To: <20050811221854.5914F1F50B1@ws1-2.us4.outblaze.com> References: <20050811221854.5914F1F50B1@ws1-2.us4.outblaze.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------030308060208080902070709 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lukman Jaji wrote: > Hi all, > > I am sorry i have not been so active for almost a yr now. I need u guys to help me with a little info on barcodes. > I have an inventory management software and i need to incorporate a barcode printing capanilities on it. Can i get a code snippet to do this,,,,any of the barcodes types of Code 39, Code 128B, etc. Here is a small sample using the library iText to produce PDF files containing barcodes. It's a small quick&dirt program I did when I had to help my wife printing some sheets full of barcode labels (she owns a retail shop) Just unzip in an empty dir, and put itext-1.2.1.jar in the same directory (if you get a different version, edit build.xml at line 114 accordingly), then 'ant test' should produce a PDF file. Barcode printers are generally wired via RS232 or USB: you can use them from a Java program in FreeBSD, but I think you need to find (or write yourself) a library implementing the specific protocol of your printer. Angelo. --------------030308060208080902070709--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42FC8C1D.6080805>