Create Barcode 128 With Navibar

JohnieGJohnieG Member Posts: 56
Hi to all
I am trying to create a barcode 128 image file using navibar. My Barcode is 133812M #. So I create the following command line string:

'C:\Barcode\Navibar.exe 1333812M #{14{120{60{C:\Barcode\test14.bmp'

This doesn't seem to work with any of the barcode types 11 through 15 that Navibar uses. For instance i have tried all the following with no good result:

'C:\Barcode\Navibar.exe 1333812M #{11{120{60{C:\Barcode\test11.bmp'
'C:\Barcode\Navibar.exe 1333812M #{12{120{60{C:\Barcode\test12.bmp'
'C:\Barcode\Navibar.exe 1333812M #{13{120{60{C:\Barcode\test13.bmp'
'C:\Barcode\Navibar.exe 1333812M #{15{120{60{C:\Barcode\test15.bmp'

Am I doing something wrong?I have already used Navibar with EAN-13 and it worked perfect!Is there any possibility that my Barcode is not acceptable?Do I need to parse the Check Digit also(I have tried that with no good result)? Do I need to parse any other special character?

All advice are welcome!!!
Always Look On The Bright Side Of Life...

Answers

  • SavatageSavatage Member Posts: 7,142
    did you try putting your number in single quotes?

    OnAfterGetRecord()
    IF Item."my128code" <> '' THEN BEGIN
    CreateBarcode:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
        'c:\barcode\Navibar.exe',       // Program
        ' ' + Item."my128code"+'{',   // code to generate
        '14'+'{',                               // barcodetype
        '120'+'{',                              // width in pixel
        '50'+'{',                               // high in pixel
        'c:\barcode\test14.bmp'));                   // destination for the .bmp-file
    
    Picture.IMPORT('c:\barcode\test14.bmp');
    END;
    

    Note: Item."my128code" is an example field in the item table that holds the value - it can be any table (for example)

    CreateBarcode:= SHELL(STRSUBSTNO('%1%2%3%4%5%6','c:\barcode\Navibar.exe',' ' + Item."my128code"+'{','14'+'{','120'+'{','50'+'{','c:\barcode\test14.bmp'));
  • JohnieGJohnieG Member Posts: 56
    Thank you for your reply Savatage,
    But I don't think that this is my problem. When I execute from Command Line Window the statement

    'C:\Barcode\Navibar.exe 1333812M{14{120{60{C:\Barcode\test14.bmp'

    it generates my barcode perfect,regardless Navision. Note that my barcode is [1333812M] (without the []).On the other hand, when I execute the statement

    'C:\Barcode\Navibar.exe 1333812M #{14{120{60{C:\Barcode\test14.bmp'

    it doesn't generates a barcode image but instead I get the word size in the barcode. Note that now my barcode is [1333812M #](again without the []).
    So the only conclusions that I made so far is that one of the following things occurs:
    1. The Navibar needs some additional character to work with the barcode [1333812M #].
    2. The Barcode [1333812M #] is not a valid Code 128 Format (which I don't think that is true).

    Any help...???
    Always Look On The Bright Side Of Life...
  • JohnieGJohnieG Member Posts: 56
    Finally Got It!!!
    The problem was the dimensions of the barcode. I switched them to 400 and 120 and worked. Now I have to make a little survey in order to found the correct dimensions for that type of bacode. Consider this topic closed...
    Always Look On The Bright Side Of Life...
  • SavatageSavatage Member Posts: 7,142
    that's was my next suggestion was to try different sizes.

    as in the Barcode Generator post
    viewtopic.php?f=7&t=1789&hilit=barcode+generator&start=32
Sign In or Register to comment.