HOW TO: Barcodes (with download)

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

HOW TO: Barcodes (with download)

Postby bcusick » Fri Mar 25, 2005 11:48 pm

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!
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby ebrandt » Tue Mar 29, 2005 9:12 pm

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)?
ebrandt
 
Posts: 590
Joined: Tue Mar 30, 2004 6:54 pm
Location: largo, fl

Postby Harjo » Tue Mar 29, 2005 11:22 pm

There is also a great (free)bean, dat generates almost all kind of barcodes
There you have all the options (size, etc..)
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby ebrandt » Wed Mar 30, 2005 2:57 pm

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.
ebrandt
 
Posts: 590
Joined: Tue Mar 30, 2004 6:54 pm
Location: largo, fl

Postby Harjo » Wed Mar 30, 2005 6:45 pm

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.
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby ebrandt » Wed Mar 30, 2005 7:05 pm

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.
ebrandt
 
Posts: 590
Joined: Tue Mar 30, 2004 6:54 pm
Location: largo, fl

Postby bcusick » Fri Apr 01, 2005 5:01 am

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
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby Harjo » Fri Apr 01, 2005 7:43 am

Here it is: http://jbarcodebean.sourceforge.net/.
Works great!
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Karel Broer » Thu Dec 29, 2005 6:42 pm

HJK wrote: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?
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Postby Harjo » Fri Dec 30, 2005 1:08 am

out of my head:

application.createJPGImage ( )

look in de samples for the properties
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to How To

Who is online

Users browsing this forum: No registered users and 8 guests