I need some help creating a simple program that accepts a variable and outputs a barcode to a stream. Here's what I've found so far on the subject:
I'm using an HP lasterjet printer, I send the font to the printer before hand.
I'm using code 128.
I don't need the check digit as I'm just passing a variable for a report, nothing needs validated.
It seems like it should be as simple as sending the font and passing the variable but that isn't the case. I can get a barcode to generate but it won't scan.
Any push in the right direction is helpful!
The first "push" I would make is to suggest you post in the ABL forum since the purpose of this forum is to share code you have written with others.
The generic answer is that you need to send a control sequence to the printer to tell it to change fonts. You may need the check digit regardless of whether you are going to pay any attention to it because it may be part of a well-formed code ... I don't remember for 128.
Hi, It might not be exactly what you want, but we use Crystal Reports for our reporting. To get a code 128 barcode into a Crystal Report we purchased a font and a dll to implement the barcode calculation into Crystal. We've actually used two different fonts - one from ID Automation and a significantly cheaper option from Dobsonsw (http://freebarcodefonts.dobsonsw.com/) - it cost us $75 for a developer licence. With this installed you basically just feed a string into the Code128 barcode function in Crystal, and then select the font for the size of barcode you require.
Thanks for your sharing. As for me, I am also testing the related excel barcode add-in these days. Do you have any ideas about it? Or any good suggestion? Thanks in advance.
The free DocxFactory project supports all the major 1D barcodes straight out of the box.
You might want to have a look at the OpenEdge ABL tutorial.
I've attached a sample from the tutorial.
We've implemented an open source .NET control to produce qrcodes which also support some barcodes, check http://zxingnet.codeplex.com/ . It produces images which you can add to a document. Of course you're restricted to windows. If you or anyone is interested I can post some sample code.