Options

Code 128

dietmarruefdietmarruef Member Posts: 48
edited 2002-02-26 in Navision Financials
I want to print a code 128 barcode.
In 90% of the fiels the scanner can read
the barcode but in 10% not. Have anybody an idea why it not work.

Comments

  • Options
    PrebenRasmussenPrebenRasmussen Member Posts: 137
    Usually when a barcode doesn't read it is because of bad quality of the barcode.
    Especially when printing with thermal printers.

    Try to print a thick horizontal bar along the full with of the paper. See if there are 'holes' in it. This will also create a hole in the barcode making it impossible to read if the hole does not align with a 'white' bar of the barcode.

    Otherwise lets have some details of printer, font, checkdigitcalculation etc.

    [ 21-01-2002: Message edited by: PrebenRasmussen ]
  • Options
    jreynoldsjreynolds Member Posts: 175
    What version of Navision are you using and what code 128 font are you using?

    I had a similar problem with the Elfring fonts and Navision 2.01. The code 128 symbology uses 106 different combinations of bars and spaces. In the standard ASCII character set there are 93 printable characters. Elfring has mapped some of the high ASCII (greater than 127) characters to the remaining 13 combinations. It so happens that Navision 2.01 will not print several of these high ASCII characters. For most of what you typicaly print (e.g. alphanumeric and punctuation) this is not a problem because the characters are among the standard printable ASCII characters. However, each barcode also contains a check sum character that may require the use of these non-printable characters. When you happen upon a particular string of characters whose check sum maps to one of these non-printable characters then Navision is unable to correctly print the barcode.

    There are several possible solutions. (1) Upgrade to a later version of Navision (2.60 works, I don't know about 2.50) that will print these problems characters. (2) Get a different font that doesn't rely on these non-printable characters. (3) Edit the font so that different characters (that Navision will print) are used instead of the problem characters - this will require modifications to the code that is producing the text strings to print.

    [ 23-01-2002: Message edited by: Jack Reynolds ]
  • Options
    dietmarruefdietmarruef Member Posts: 48
    Thank you Jack! But I use Navision Attain to Print the Barcode. I also try several Fonts, try to change the Special Characters to another and Calculate a Checksum with Modulo 103 Algorithm. I think the problem is that Navision use ASCII Character Set and Windows use the ANSI Character Set. Now I temporary solve the Problem with a OCX that Print a Barcode as *.bmp in the specifyed Directory.
    But I'am still looking for another Solution.
    Did Anyone knows one???
  • Options
    JohnPJohnP Member Posts: 56
    I had this ASCII-ANSI conversion problem and solved it by simply printing out a testcard of all the barcode characters from 0 to 255 and then manually identified the barcodes to work out the conversion. Work out the proper code 128 values you want and then convert them with the following table before you print them. I was using the Datascan fonts so you may need to alter this but give it a go anyway.

    0 -> 210
    95 -> 173
    96 -> 155
    97 -> 156
    98 -> 15
    99 -> 157
    100 -> 221
    101 -> 21
    102 -> 208
    103 -> 209
    104 -> 166
    105 -> 174

    Cheers
    John
  • Options
    kmocaikmocai Member Posts: 3
    Hi there,
    I'm a little confused about this topic. I also need to print code 128 barcodes from Navision. Can this be done without the purchase of a true type font? Can the data of the report be coded in some way to produce a 128 barcode? If so, can someone provide me with an example? <img border="0" title="" alt="" src="images/smiles/icon_confused.gif" />
  • Options
    mayermayer Member Posts: 50
    Hi Kelly,

    you can also use my barcode-tool which you find free in the download-section.

    It generates a bmp-file which you can temporary import and print.

    greetings Ralph
Sign In or Register to comment.