From owner-freebsd-java@FreeBSD.ORG Fri Aug 12 11:48:20 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CEE116A41F for ; Fri, 12 Aug 2005 11:48:20 +0000 (GMT) (envelope-from aturetta@bestunion.it) Received: from ms007msg.fastweb.it (ms007msg.fastweb.it [213.140.2.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7895D43D45 for ; Fri, 12 Aug 2005 11:48:19 +0000 (GMT) (envelope-from aturetta@bestunion.it) Received: from mail.bestunion.it (81.208.52.77) by ms007msg.fastweb.it (7.2.060.2) id 42F230590005C664 for freebsd-java@freebsd.org; Fri, 12 Aug 2005 13:48:18 +0200 Received: from [192.168.42.11] (81-174-12-226.f5.ngi.it [81.174.12.226]) (authenticated bits=0) by mail.bestunion.it (8.13.4/8.13.4) with ESMTP id j7CBkfH1002858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Aug 2005 13:46:48 +0200 (CEST) (envelope-from aturetta@bestunion.it) Message-ID: <42FC8C1D.6080805@bestunion.it> Date: Fri, 12 Aug 2005 13:46:37 +0200 From: Angelo Turetta User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 X-Accept-Language: it, en-us, en MIME-Version: 1.0 To: Lukman Jaji References: <20050811221854.5914F1F50B1@ws1-2.us4.outblaze.com> In-Reply-To: <20050811221854.5914F1F50B1@ws1-2.us4.outblaze.com> Content-Type: multipart/mixed; boundary="------------030308060208080902070709" X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on mail.bestunion.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_50, J_CHICKENPOX_54 autolearn=no version=3.0.4 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.bestunion.it X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@freebsd.org Subject: Re: Barcode help X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 11:48:20 -0000 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--