HOW TO: Barcodes (with download)

I was frustrated at all the expense and the hassles of all the font issues in dealing with barcodes across different platforms - so I came up with a way that you can integrate barcodes into any solution (make the download file a module in Servoy 2.2+).

This requires ZERO FONTS, is completely cross platform, and is extensible to ANY barcode schema you want. I’ve included examples for POSTNET and CODE 39 - but you can add as many others as you want.

http://www.servoymagazine.com or
direct link: http://www.servoymagazine.com/home/2005/03/tip_barcodes_ba.html

ENJOY!

This is great,

As much as I have played with it, it works and is easily decoded. I had on question on the formatting. Is it possible to reduce the spaces and widths of the output. Most barcodes I use now are about half the size, so that they can fit on small labels.

With the code 39 I use (text), there are several formats for sizes. How would I go about condensing, reducing the width, using your abstract technique (quite ingenious I might add)?

There is also a great (free)bean, dat generates almost all kind of barcodes
There you have all the options (size, etc..)

Do you know where I could find this bean, The last one I played with, generated the barcode perfectly, but I could not assign it to a field, so that I could print out listings and labels.

That’s the same bean I ment.

In 2.2 there is a new function, which you can make a JPG (image) of a bean. I am using this to generate (once, instantly) an image, for printing purposes.

Thanks,

I have to create and store 5000- 10000 bar codes, would you suggest inserting the image directly into the master record, or would this possibly create performance issues, and should be stored in a seperate table or link? I know this was sort of a vague question.

Do you have any sample code of the method that creates the image and stores it into a media field?

I will not start this project for a month or so, I was just looking for some initial information on the concepts.

BTW, I am using SQL 2000 backend.

Hi guys,

Sorry for being “out of the loop” - but I’m on the road doing a Servoy training in Boston.

You can only reduce the “space” by changing the HTML for the space (and you can’t do smaller than one pixel).

I have not heard of - nor have I used a bean to generate the barcode - but that is COOL. What’s the URL so I can download?

Cheers,

Bob

Here it is: http://jbarcodebean.sourceforge.net/.
Works great!

HJK:
In 2.2 there is a new function, which you can make a JPG (image) of a bean. I am using this to generate (once, instantly) an image, for printing purposes.

Hi Harjo, how do you do that?

out of my head:

application.createJPGImage ( )

look in de samples for the properties