Barcodes

I just want to throw my hat into this thread. Adding barcodes to an inventory solution is on my todo list coming up. Now that I’m doing research for it, I see that there are a few more options than I imagined. I expect I’ll most likely end up doing it fast and easy with a font. As someone said, a barcode font isn’t “just any font.”

  • David

Hi David, lot of different bar codes out there, all with pro and cons. Depend on what you want to do, on how much information the code must contain, in how small or big can be: only numbers, numbers and upper characters, all characters, for internal use or for sales (world wide identification codes http://www.ean-int.org), postal codes, bidimensional codes…UPC, EAN, JAN, CODE 39, CODE 93, CODE 128 ,NW-7, MSI, ITF, industrial 2 of 5, DATAMATRIX, PDF-417, QR Code, MAXI Code, Micro PDF-417, Postnet, RM4SCC, KIX-code, RSS14, and a lot more…

but always simple to use: print them with the appropriate font / bean / printer and read them with the appropiate pen / scanner / laser / handheld / wireless reader

Well,
My last cents are:

One inventory item is associated with One Unique Code. Using fonts are not graphically demanding. The only people that need actually see the code are the machines printing the codes.

With my solution I do not have too many users printing codes.

If you want the barcode to print, be it a listing or label, all you have to do is drag the fonts into the folder (or network install).

This might not be a good idea if you had web based users needing to print bar codes.

David,

I will send you the FM program (3 Files) and fonts to play with tomorrow. Hopefully you can better relate the font based barcode functionality.

I am using the JBarcodeBean, and it is working fine. However, when I come to print my form, it always prints the default barcode, and not the one showing on my form. Why is this?

How difficult was in to install and invoke the bean? I have no knowledge of installing, configuring and invokeing a bean within servoy. Can someone with little expierence with beans fumble their way through it?

It was very simple to get the barcode bean working. I just placed it (.jar file) in the Beans directory, and it was accesible then from my form. Its then just a case of using the methods available to you for your bean in the script editor. Java Docs for your bean can also help !

I could not find the jar file, all the files I found where classes and libraries which came in a zip file. Where did you find the jar file?

Thanks,
Erich

Are you trying to use JBarcodeBean?

Did you download it off http://jbarcodebean.sourceforge.net/. Thats where I got it from, and the JBarcodeBean.jar file is in there.

Simon,

I downloaded the bean and got it to read the contents of a field.
On the form I created a method using the element node:

elements.bean_458.code = order_number;

I can’t believe that it could be this easy, but I will next try to scan the code to see If I get the code returned.

Yes it was very easy, I was also surprised!

Let me know if you can get it to print! Because mine wont!

I see your problem, If I run the method on a record, I see the correct barcode, but when I go to print it defaults to the 1234 code. I guess the next thing is to figure out how to generate the code where the result is stored somehow. If I close and reopen the form the code reverts back to the default. It is acting like a global as well. I need the code to reflect the record that I am on and store it.

Correct.

I havent really used servoy for printing yet, will have a quick read up. I may have to create my own print method.

Let me know if you get it working.

Cheers
SImon

If you set the code field in the properties panel as as a data tag %%your_barcode_field%%, it then get carried over to the print preview. I think this also removes the need for any additional methods. Just testing it out now.

I tried to set the code property as you said, but it is not reading the fieldname as a dataprovider.

The result is %%OrderNumber%%.

Sorry, my mistake, it doesnt work! It looked like when I was changing records that the barcode was changing, but when I printed it off and scanned it, it returned %%barcode%%…

Guys,

When you use merge text (%%fieldName%%) in a label or in data - you MUST check the “displayTags” checkbox of the object. If you don’t - then you’ll just see “%%fieldName%%” rather than “data”.

Hope this helps,

Bob Cusick

Not an option with this bean.

Thanks anyway

Erich, have you got any further with getting the JBarcodeBean to print?

Servoy team, can you confirm that data stored for a Bean is not transfered over to print-preview. Is there a way of executing methods once in print-preview mode?

Thanks,
Simon

Simon,
I have not got anyfurther with storing or printing the barcode data.
Let me know if you have any luck.
Thanks