Barcode - Checkdigit missing in plain text

Knowledge exchange related to dycodoc, the visual form and document designer

Moderator: IDEAL Software Support

Barcode - Checkdigit missing in plain text

Postby kussaued » Tue Jun 19, 2012 2:11 pm

I'm using a code39 barcode with automatic checkdigit in my document (dycodoc 2.20, Win XP SP3).
The automatic checkdigit is missing in the main text below the barcode
(in my example below the checkdigit is `K`, main text position=at bottom, automatic checkdigit=true).

What I need is:
Code: Select all
||||||||||||
23241152K


What I get is:
Code: Select all
||||||||||||
23241152


Is this done intentionally?
How to achieve the desired behaviour?

Thanks for any help
kussaued
 
Posts: 4
Joined: Fri Jun 01, 2012 9:25 am

Re: Barcode - Checkdigit missing in plain text

Postby IDEAL Software Support » Tue Jun 19, 2012 5:35 pm

The checkdigit is coded into the barcode, but it is not shown as plain text.

You can use a barcode scanner to verify this (scan the printed barcode, do not try to scan from the screen).
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Barcode - Checkdigit missing in plain text

Postby kussaued » Tue Jun 19, 2012 6:25 pm

I know that the checkdigit is in the barcode.

But I need to have it in the plain text also.

How can I achieve this?
kussaued
 
Posts: 4
Joined: Fri Jun 01, 2012 9:25 am

Re: Barcode - Checkdigit missing in plain text

Postby IDEAL Software Support » Tue Jun 19, 2012 7:20 pm

The barcode library we are using is not designed to display check digits within the human readable text. This makes sense, since check digits are not human readable at all. On the other hand, there might be cases where entering a check digit together with the human readable text by keyboard is useful, in order to make sure the text has been entered correctly.

You can solve the problem by computing the check digit yourself. For Code 39 this is really simple: First, sum the values of each character ('A' has the value 0, 'B' has the value '1', etc. - the full table of characters and their values can be found quickly in the internet). The check digit is the sum modulo 43, i.e. divide the sum by 43 and the remainder is the value of the check digit. Then convert the value into a valid character, i.e. a value of 0 is the character 'A' and so on. Append this character to the end of the string.

Note that you need to turn off the automatic check digit generation of dycodoc / VPE, when computing the check digit on your own.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to DCD Open Forum

Who is online

Users browsing this forum: No registered users and 3 guests

cron