Using OCX to print barcodes in Navision (report)

mcaverlymcaverly Member Posts: 26
Could we use any OCXs to print barcode(s) in Navision (report)?

TIA

Comments

  • garakgarak Member Posts: 3,263
    check the download section.
    Also you can use a font to print 3of9 or code128 barcode.
    Also for this there are examples in the forum.viewtopic.php?f=23&t=26270

    Or you create a bitmap viewtopic.php?t=1789&postdays=0&postorder=asc&start=0
    Do you make it right, it works too!
  • mcaverlymcaverly Member Posts: 26
    Thanks. I will try your leads.
  • mcaverlymcaverly Member Posts: 26
    garak wrote:
    check the download section.
    Also you can use a font to print 3of9 or code128 barcode.
    Also for this there are examples in the forum.viewtopic.php?f=23&t=26270
    ==========================================
    We have to use UCC EAN 128 compliance font.

    Do you have any suggestion? Does Microsoft/NAV offer any downloaded font(s)?

    TIA
  • SavatageSavatage Member Posts: 7,142
    using the generaor would be something like this

    Using the Item Table as an example we are going to create a EAN128 barcode of the DESCRIPTION.
    OnAfterGetRecord()
    IF Item.Description <> '' THEN BEGIN
    CreateBarcode:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
        'c:\Navibar.exe',                       // Program
        ' ' + Item.Description+'{',             // code to generate
        '15'+'{',                               // barcodetype
        '500'+'{',                              // width in pixel
        '50'+'{',                               // high in pixel
        'c:\temp\createdbarcode.bmp'));         // destination for the .bmp-file
    Picture.IMPORT('c:\temp\createdbarcode.bmp');
    END;
    

    You need to create a c:\temp directory
    You need to download Navibar.exe and put it c: (for this example)
    CreateBarcode is a variable type Integer

    In the report view->sections & add a picturebox with sourceexp = Picture

    that's it.

    the other Barcode types are: (i'm using 15 for this example)

    00-ISBN
    01-EAN 13
    02-EAN 8
    03-EAN 5
    04-EAN 2
    05-UPC A
    06-Code 39
    07-Code 25 interleaved
    08-CodeBar
    09-Code 25
    10-Code 39 Extended
    11-Code 128 A
    12-Code 128 B
    13-Code 128 C
    14-Code 128
    15-EAN 128
    16-EAN 99
    17-UPC E
    18-PostNet
    19-Royal Mail
    20-MSI
    21-Code 93
    22-Code 93 Extended
    23-PZN
    99-None

    The download does mention an OCX - but i didn't use that
Sign In or Register to comment.