Barcode code39 space character?

BGIBGI Member Posts: 176
We are using very frequently the barcode fonts that came along with the old 2.0 version of navision, namely BC C39 3 to 1
I have one problem now, that is how to print a 'SPACE'.
We have a customer with spaces in their item no.s and we want to print a barcode with this space in it, but for the momen it prints really a blanc space in the barcode, and this is not readable for the barcodescanner...

Any suggestions(apart from removing the space in the no., because this is not an option...)
Rgds
Benny Giebens

Comments

  • kinekine Member Posts: 12,562
    The symbology of the Code 39 character set consists of barcode symbols representing characters 0-9, A-Z and the space character plus the following symbols: - , . , $ , / , + , %. In addition, the full 128 ASCII character set can be encoded in Code 39.

    It means, space is supported by Code 39, but it seems like your font is using another character for entering the space or have no correct definition for the space...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Captain_DX4Captain_DX4 Member Posts: 230
    I'm not familiar with that font face, but I believe what you may find is that a control character exists that prints the space character in barcode without actually outputting a <space> in the actual barcode. You'll need to find replace the space with the control character for the output to be correct.

    I don't envy you your task. I fought with a Code 128C barcode last month. It was a tad painful until I got the correct information about the font being used.
    Kristopher Webb
    Microsoft Dynamics NAV Developer
  • BGIBGI Member Posts: 176
    Of course, didn't think about control char.
    In fact, it was pretty simple to figure out.
    Made a dumy report, with a string + a char + a string.
    Then a loop to print all the char's from 1 to 128 in the barcode font, took the scanner and scanned one by one to find out that asci char 44 gives me a space when i read it....
    Thnx anyway for the help....
    Rgds
    Benny Giebens
  • Captain_DX4Captain_DX4 Member Posts: 230
    *lol* That's a very interesting way to work out the problem. Congradulations for creative problem solving! Although it sounded like it was a bit of a pain to setup and execute. *hehe*

    My issue was with the Code 128C font I was using, each character is actually comprised of three pieces and I needed to know what three pieces made up the two-digit character (00 through 99 plus the special control characters 100 through 105). Each of the characters in the barcode were comprised of three ascii control characters to produce a barcode character. So I needed to use combinations like !'% to get my proper output. Crazy![/u]
    Kristopher Webb
    Microsoft Dynamics NAV Developer
  • Navsyst2Navsyst2 Member Posts: 29
    BGI wrote:
    Of course, didn't think about control char.
    In fact, it was pretty simple to figure out.
    Made a dumy report, with a string + a char + a string.
    Then a loop to print all the char's from 1 to 128 in the barcode font, took the scanner and scanned one by one to find out that asci char 44 gives me a space when i read it....
    Thnx anyway for the help....

    Hi Benny,

    can you please describe it more details how did you do it..
    string + a char + a string...

    Which Variable Type do you use to output [string + a char + a string]

    Regards
    Tirta
Sign In or Register to comment.