Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Bar code not scannable

Received Response
1551
Views
37
Comments
13

Answers

  • timdexter
    timdexter Rank 6 - Analytics Lead

    I just have the barcode font that ships with publisher. I believe its pre loaded to the server so you can just go get it or its installed with the BI Pulisher Desktop.

    As for your output I just tested with your code 128 font and the Oracle encoder and I get the same result as you ie characters that are not handled by the font like the copyright glyph

    You have a couple of choices:

    1. Abandon the font you downloaded and use the Oracle fonts. I have tested them with the Oracle encoder and they work perfectly

    2. Find  out the encoder algorithm code needed for the current font and implement your own encoder class.

    #1 is going to be much easier and you can move on to the next challenge and forget coade128 barcodes for a while

    Cheers

    Tim

  • timdexter
    timdexter Rank 6 - Analytics Lead

    The BIP Code 128 fonts are available in the BI Publisher installation directory. There is a fonts directory under the Template Builder for Word directory.

    Install the Code 128 font into windows and use that in MSWord.

    Once on the server, BIP will pick up the font and use it

    Tim

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics Lead

    I see there is text required in barcode font, for instance  ÌCodeÂÇ,tXXÎ for code 128 :

    Cannot scan data printed with a barcode font do you know where I should put this ?

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics Lead

    So I reinstalled BIP for desktop and used the font that is comes with the add-in and my barcode is a bit longer than before in the template and this is what I have :

    But when I run the report this is the kind of barcode I get :

    So basically it seems like it's the same as before.

  • timdexter
    timdexter Rank 6 - Analytics Lead

    I think you have mixed up the fonts.

    I would

    1.remove the fonts from the windows/fonts directory on your local machine

    2. Then do the same on the server with the font that you downloaded.

    3Now install the BIP delivered font from the Template for Word/fonts directory into the windows/fonts dir

    4Use the font in the template

    5The command you are using is correct.

    <?format-barcode:SHIPMENT_XID;'code128a'?>

    code128a refers to the encoding thatyou want applied to your SHIPMENT_XID data not the font you are using.

    6 Save and deploy to the server as a new template

    Run it and check the result.

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics Lead

    I can't manage to make it work. If the font installed in word is called "Code 128" and in my rtf I put

    " <?format-barcode:SHIPMENT_XID;'code128a'?> ", in BIP it should be "Code 128" right ?

  • timdexter
    timdexter Rank 6 - Analytics Lead

    1. The barcode font being used is the one you downloaded from here:https://www.dafont.com/fr/code-128.font  I know its that font because I can reproduce the issue only with that font. Using the BIP code128 barcode, you will not get regular charachers in the barcode.

    So, that font is still in your system somewhere and is being used still.

    2. I saw that issue with dots when you sent me the template. Im not sure if it was some translation issue with Word when it rendered for me in my English version of Word. I just pasted in the command again and it worked and remained OK.

    Tim

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics Lead

    And now when I upload my template onto BIP which the encoded string *<?format-barcode:SHIPMENT_XID;'code128a'?>* (yes I added the " * " this time)  I get this kind of barcode in my report :

    And when I download my template again it doesn't show the encoded string but this instead :

  • timdexter
    timdexter Rank 6 - Analytics Lead

    Pleased you have it working :0)

    Some points would be greatly appreciated at this point (excuse the pun)

  • Antoine KAIBER
    Antoine KAIBER Rank 6 - Analytics Lead

    Ok so my internet is very slow atm so I can't really do tests but it's weird that it took the font from datfont.com since I thought I had uninstalled it and when I uninstalled BIP I couldn't choose the font 'code 128', it appeared again when I reinstalled BIP.

    The other thing is that I have a french version of BIP in word but my word version is in english, I don't know if that could be a problem.