Page 1 of 1
Printing barcodes from R&R
Posted: Mon Dec 19, 2005 1:59 pm
by Tom_(Guest)
I^m trying to print an alphanumeric field as a Code 128 barcode on a report. I have the barcode font, but it^s not enough to just print the field, there has to be a "start" bar, then the field data, a checksum bar, and finally an "end" bar added. Does R&R have any built in user function library to accomplish this? If not, I^m not sure how I can do it. I can figure out how to enter the start and stop characters (ext ascii) as a part of a calculation which can include the field and be entered in designer, but the checksum calculation doesn^t seem possible.____Thanks for any help...____Tom
=> RE: Printing barcodes from R&R
Posted: Mon Dec 19, 2005 4:44 pm
by kfleming
What is the required format of the checksum calculation? We do not have any built in bar code functions but you can probably build a UDF that will do the job for you.____Kathleen__R&R Support____
==> RE: Printing barcodes from R&R
Posted: Mon Dec 19, 2005 6:50 pm
by Tom_(Guest)
__Hi Kathleen,____The standard on the 128 barcode is as follows. Any help will be appreciated. I^m sure I can^t be the only one trying to print scannable barcodes from an R&R document. I^m new to this program though, and don^t have any familiarity with this language, so am having to learn as I go. Thanks....______Every Code 128 symbol requires a check character being placed between encoded data and stop character. The check character is derived from a modulo 103 calculation of the weighted sum of all characters. Here is the procedure to calculate the check character:____Take the value (0 through 102) of each character in the message. This includes the start character, shift character, but excluding the stop character. Start with the first character of the data, assign the weight for each character. The first character has a weight of 1, the second character has a weight of 2.. and increment by 1. Note that the start character also has a weight of 1. stop character is excluded in the calculation. Multiply the character value with weight. Sum all the results. Divide the result by 103 and get the remainder. Look up the remainder in the table to get the check character. The stop character, and termination bar is appended after the check character.__