Options

Barcode 128

DirkDirk Member Posts: 6
edited 2000-02-09 in Navision Financials
Does anybody know how to create a code for Barcode 128 (especially 128B) in Financials?
My main problem in this matter is the conversion of values starting at 96 (these values can be needed when calculating the checksum). The values between 64 and 95 can easily be converted with a variable of type CHAR. But how do I convert the values starting at 96 (so called scancodes, like FNC2, FNC3, SHIFT)?

Thanks

Comments

  • Options
    BennyGiebensBennyGiebens Member Posts: 43
    We use a barcode font for this.
    Al the specified things can be done, but you need some character translation in your c/al code.

    You can find more info at http://www.barcodingfonts.com

    Rgds
    Benny Giebens
    Rgds
    Benny Giebens
  • Options
    DirkDirk Member Posts: 6
    The barcode font is not the problem, the translation in C/AL is. I don't know how to translate the checksum (when it reaches values of 95 and higher)!
  • Options
    krishnadkrishnad Member Posts: 36
    I got around the problem by purchasing BarTender software from Seagull Scientific.

    What you can do is to use a report to write an ascii file to the hard drive and then call Bartender at the end of the report.
  • Options
    jpjp Member Posts: 47
    Not sure I understand why 96 is different than 95?
    -jp
  • Options
    UrmasUrmas Member Posts: 76
    Hi.

    It should be relatively simple to create an OCX to obtain a string representing the integer value passed as a parameter.
    Can send you one, if you really need it.

    Urmas

    urmas.pill@rlk.ee
  • Options
    DirkDirk Member Posts: 6
    To jp,

    of course you're right. The problem also exists with value 95.

    To Urmas,

    it would be great if you could send me the OCX!
    --> dirk.manders@datasave.de

    Thanks to all of you!
  • Options
    jpjp Member Posts: 47
    I'm sorry. What I was getting at is "what is the problem?"

    Calculating Code128 is easiest in an array of integers, one for each character of the resulting barcode string, including start character and checksum.

    Once you have the entire array calculated, you convert it to text.

    Assuming
    integer array x[30],
    text string y len(30),
    integer i,imax

    The following code converts the array to text:

    for i:= 1 to imax do
    y := x;




    -jp
    -jp
  • Options
    jpjp Member Posts: 47
    One thing to look out for is the NUL character (code 0). Naivsion treats it like a string delimiter. I don't think that code 128 includes any NUL characters, but during your debug, it's something to watch out for.
    -jp
  • Options
    krishnadkrishnad Member Posts: 36
    I think the above code will not work!
  • Options
    DirkDirk Member Posts: 6
    Will keep you posted about the results! It might take a while, because the font to print the barcodes has to be bought first.
  • Options
    DirkDirk Member Posts: 6
    Thanks a lot! I can't believe it's as easy as that.
Sign In or Register to comment.