Barcode generator v2

124»

Comments

  • SavatageSavatage Member Posts: 7,142
  • anilswamianilswami Member Posts: 21
    Hi harry,
    thanks for your response The automation i am using to print the shelf labels this error i am getting when the the items exceed more than 10.sometimes it will work fine but the error saying file in use comes any time.
  • anilswamianilswami Member Posts: 21
    Hi harry ,

    still i am facing same issue of file in use.can you plz tell me how to resolve the issue.I am using this barcode generator to print shelf label reports in nav 2009.
  • SavatageSavatage Member Posts: 7,142
    It's hard to say when you post that it works sometimes. The only time I see the file is in use message is when a Close command isn't being used. We can't see all your report so there are things you have to do on your own. Take it in steps..ie 1-does it create the barcode image file? If so is it importing when requested. If calling more than one item am I clearing previous values. You should be able to figure out why it works sometime.

    Also the download section has other barcodes creators if you can't figure this one out. Just search the download section for barcode.
  • DivyaDivya Member Posts: 125
    Hi,

    Barcode image is exporting as too small (79 X 16). But I need to increase Width and Height of the Barcode Image.
    I want to increase as (160 X 32). Where should i need to change the code for that.
    Kindly help me to solve this issue.

    Code is,
    //http://en.wikipedia.org/wiki/BMP_file_format - BMP header w/o any tricks
    //Can be changed if needed
    CharInt := 'B' ;
    OutputStream.WRITE(CharInt, 1);
    CharInt := 'M' ;
    OutputStream.WRITE(CharInt, 1);
    OutputStream.WRITE(54 + Rows * Cols * 3, 4);
    OutputStream.WRITE(0, 4);
    OutputStream.WRITE(54, 4);
    OutputStream.WRITE(40, 4);
    OutputStream.WRITE(Cols, 4);
    OutputStream.WRITE(Rows, 4);
    OutputStream.WRITE(65536 * 24 + 1, 4);
    OutputStream.WRITE(0, 4);
    OutputStream.WRITE(Rows * Cols * 3, 4);
    OutputStream.WRITE(2835, 4);
    OutputStream.WRITE(2835, 4);
    OutputStream.WRITE(0, 4);
    OutputStream.WRITE(0, 4);
    



    Divya
    Victory is sweetest when you've known defeat
  • SavatageSavatage Member Posts: 7,142
    What does your code have to do with the barcode generator? If you follow the link from a few posts above you will see the barcode generator has settings for width & height.

    If your post is just a miscellaneous barcode question then start a new topic.
  • DivyaDivya Member Posts: 125
    Hi, Im using same Barcode Generator V2 for creating barcode as Image. But my question is, im going to change the code to increase width and height of the barcode image.
    Victory is sweetest when you've known defeat
  • SavatageSavatage Member Posts: 7,142
    Divya wrote:
    But my question is, im going to change the code to increase width and height of the barcode image.
    That's a statement not a question and by looking at the code below, what are you not understanding?
    just change the values of the ones marked (width in pixel & hight in pixel)
    OnAfterGetRecord()
    IF Item."Item UPC/EAN Number" <> '' THEN BEGIN
    CreateBarcode:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
        'i:\navision attain\Navibar.exe',       // Program location
        ' ' + Item."Item UPC/EAN Number"+'{',   // code to generate from Nav
        '05'+'{',                               // barcode type "code" you want
        '120'+'{',                             // width in pixel
        '50'+'{',                               // hight in pixel
        'c:\temp\barcode.bmp'));      // destination for the .bmp-file
    Picture.IMPORT('c:\temp\barcode.bmp');
    END;
    
  • Nav09SP2UserNav09SP2User Member Posts: 2
    Hi,

    i think i need a little help :)

    Our Code
    IF Item.EAN <> '' THEN BEGIN
    ok:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
        'C:\Programme\BarcodeNAV09\Navibar.exe',  // Programm
        ' ' + Item.EAN +'{',                                  // code to generate
        '01'+'{',                                                // barcodetype
        '120'+'{',                                              // width in pixel
        '60'+'{',                                               // high in pixel
        'c:\temp\bild.bmp'));                            // destination for the .bmp-file
    
    Picture.IMPORT('c:\temp\bild.bmp');
    END;
    

    Microsoft Dynamics NAV
    The file name "c:\Navibar.exe 617075400200{05{120{60{c:\temp\bild.bmp" contains a character that may not be used.

    Please check the file name. You can find additional information on file names in the documentation for your operating system.

    OK

    anyone have any ideas?

    Many thanks

    PS. We use NAV09SP2 -

    When saving the message comes

    Function 'SHELL' is deprecated for Microsoft Dynamics Navision.

    Are the SHELL Command not supported?
  • SavatageSavatage Member Posts: 7,142
    How about Windows Automation instead of shell:

    See here: viewtopic.php?t=12417
  • dennistdennist Member Posts: 1
    I have something really strange.
    I have navibar running on a Windows 7 computer, when I run the command : navibar 8717529007107{01{240{120{c:\temp\8717529007107.bmp{true it create's the barcode image but it does not show the number.
    When I do the same thing on a other computer running Windows 7, it works.

    Does anyone have a idea?
  • JanSJanS Member Posts: 6
    dennist wrote:
    I have something really strange.
    I have navibar running on a Windows 7 computer, when I run the command : navibar 8717529007107{01{240{120{c:\temp\8717529007107.bmp{true it create's the barcode image but it does not show the number.
    When I do the same thing on a other computer running Windows 7, it works.

    Does anyone have a idea?

    Hi DennisT,

    Our problem is similar to yours.
    When setting the last parameter to {true or left blank tiny litte dots appear below the barcode image instead of readable text. When set to {false the dots disappear.

    It is the latest version of navibar, downloaded from the download section.

    Could it be something with missing fonts. Although Navibar creates an image, it might use a font to generate the readable text before creating an image. Or could it be that the barcode.ocx is not allowed by the security settings. Or could it be a conflict with Visual Basic (Navibar uses msvbvm50.dll).

    Thanks for any other suggestions.
  • PomaroliPomaroli Member Posts: 37
    :D
  • deepaknandwanadeepaknandwana Member Posts: 1
    Hi Techies,

    I am getting the foolowing error message. I have copied the application on the specified path and I am using below code.
    Can anybody help?

    CODE:
    ok:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
    'C:\Windows\navibar.exe',
    ' ' + Item."No."+'{',
    '08'+'{',
    '120'+'{',
    '60'+'{',
    Item."Barcode Pic"));

    ERROR:
    Microsoft Dynamics NAV Classic
    The operating system cannot find the file "C:\Windows\navibar.exe 1100{08{120{60{ " .

    Verify that the drive, directory, and file names are correct.

    OK


    Thanks,
    Deepak
  • SavatageSavatage Member Posts: 7,142
    Your code is not as described by the program notes.
    it should be something like this...
    IF Item."No." <> '' THEN BEGIN
    CreateBarcode:= SHELL(STRSUBSTNO('%1%2%3%4%5%6',
        'c:\windows\Navibar.exe',       // Program location
        ' ' + Item."No."+'{',   // code to generate from Nav
        '05'+'{',                               // barcode type "code" you want
        '120'+'{',                             // width in pixel
        '50'+'{',                               // high in pixel
        'c:\temp\barcode.bmp'));      // destination for the .bmp-file
    
    Item.Picture.IMPORT('c:\temp\barcode.bmp');
    END;
    
    look at your last line "Item."Barcode Pic"));" is that a workable destination for the .bmp file?
  • bekiobekio Member Posts: 204
    Hi everyone,

    I am using this barcode generator, and i am getting some issue.
    This is the barcode that i want to generate : 1000|LOT267|32, and it generates succesfulluy, but when i try to read this barcode with barcode reader it dosn't read it. I am using the same report to generate barcode, and if i put 1000|Lot267|32 (ot lowercase) it generates the barcode and the barcode reader reads it.

    This is the parameter that i call for LOT267 and Lot267:
    1000|LOT267|32{14{225{150{C:\Temp\bild.bmp
    and
    1000|Lot267|32{14{225{150{C:\Temp\bild.bmp

    The same report is generating the barcode, the first one barcode reader doesn't read it, the second one it reads succesfully.
    I am using Code 128 as barcode type.
    Attached you can find barccodes generated.

    I know that are different barcodes, but why the first one is not redable. Does this has to do something with letters- uppercase or lowercase?
    FYI. I have uploaded picture in .jpg and .bmp .

    Thanks,
  • bekiobekio Member Posts: 204
    Also i have generated barcodes using Run, and the same scenario.
    C:\Temp\navibar.exe 1000|LOT267|32{14{225{150{C:\Temp\bild.bmp
    and
    C:\Temp\navibar.exe 1000|Lot267|32{14{225{150{C:\Temp\bild1.bmp

    other .jpeg barcode.
  • SavatageSavatage Member Posts: 7,142
    Code 128 A encodes uppercase letters, numbers, and functions.
    Code 128 B encodes uppercase and lower case letters and numbers.
    Code 128 C encodes numbers and FNC.

    It appears you are using TYPE 14....32{14{225{150
    11-Code 128 A
    12-Code 128 B
    13-Code 128 C
    14-Code 128

    Try Type 12
    if that doesn;t work for yo0u you can look into these options:
    http://www.mibuso.com/dlinfo.asp?FileID=1113
    http://www.mibuso.com/dlinfo.asp?FileID=1191
  • JanSJanS Member Posts: 6
    dennist wrote:
    I have something really strange.
    I have navibar running on a Windows 7 computer, when I run the command : navibar 8717529007107{01{240{120{c:\temp\8717529007107.bmp{true it create's the barcode image but it does not show the number.
    When I do the same thing on a other computer running Windows 7, it works.

    Does anyone have a idea?

    It turned out that this can be solved by running the navibar.exe program in Windows XP mode.
    Change it by right-clicking on de .exe and choose properties.
    There you can change the compatibility setting.
  • PinkyczPinkycz Member Posts: 17
    Hi Guys,
    I got the sample report running with some adjustements and now trying to get the functionality working in other report and I stuck there with I believe a pretty basic problem that I just can't resolve...

    There is a Picture box added to Body(2) section of Shipment Line table, named "Bar Code" and Expression "Bar Code"... The code for BC generaion is in Shipment Line onAftergetRecord trigger...

    ... however compiling the line
    "Bar Code".IMPORT(.....


    gives me an error
    "You have specified an unknown variable
    "Bar Code"
    Define the variable under Global C/AL Symbols...


    I must be missing something elementary here.. yet this should certainly not be a Global C/AL variable... it is not variable in the sample report that runs just fine. Also the properties of the PictureBox seem to be identical...

    where to look further? Any hint appreciated.... :?

    **EDIT**
    I see where from the confusion comes... The example uses Item.Picture that indeed exist in Item table a Blob field.. the "Bar Code" I used certainly does not exist in Sales Shipment Line table...
    As I only need to print barcode, is there a way to only create and use it as variable while the reort is printed, witout adding custom BLOB field to table??
  • arronleearronlee Member Posts: 5
    Hi, Cuypz.
    I am also testing about the related
    excel ean-13 barcode generation projects these days. Do you have any ideas about it? Or any good suggestion? Thanks in advance.



    Best regards,
    Arron
    Best Regards,
    Arron


    I'm testing about image resizers to resize images. Any ideas?


    Next Tomorrow is Another Day.
  • lucysomelucysome Member Posts: 1
    arronlee wrote:
    Hi, Cuypz.
    I am also testing about the related
    excel ean-13 barcode generation projects these days. Do you have any ideas about it? Or any good suggestion? Thanks in advance.



    Best regards,
    Arron
    if you need to build a barcode generation project, you will need at least barcode dll, API, and sample codes, sample image to create barcode image.
  • SavatageSavatage Member Posts: 7,142
    Click Here:
    http://www.mibuso.com/searchdl.asp?search=description
    In the "Search filename and description" box type "Barcode"
    Category = "All Downloads"

    There are now a bunch of new barcoding solutions Many in pure c/al
This discussion has been closed.