Barcode BI Publisher

FGARCIA1

FGARCIA1

Member
Hello,

We find ourselves in need of implementing a process where it's necessary to generate labels containing barcodes, so we started generating them with the help of the BI Publisher tool. However, we're unable to display the barcode.

Can anyone help me if they know of any way or configuration required to generate a barcode using BI Publisher?
 
For years I used the code 39. Requires you to map the font in a custom property in the RTF doc or map it in the XDO config file.

Found this bar code function a couple of months ago. Love this option better. No font configuration required. the PDF417 barcode can be read by any 2D scanner. Its more compact, takes up less space. Less effort to make it work. This is a sample line from one of my templates. I won't ever go back to code 39 font.
<?pdf417: LineBarcodeValue_ID262;1.5?>

I don't know at which version this is installed by default. If it doesn't work for you search on the oracle support site. For versions that don't have it as a default you can to some set up to get it working.
 
What type of barcode do you need implement? QR, DataMatrix, EAN, Code128, etc.?
 
I forgot to mention there is also a function that does a QR code in the same way as well. Easy Peazy.
 
Disculpe, no fui claro en mi solicitud. El código que necesitamos implementar es el Código 128, pero aún no hemos podido hacerlo. Gracias por todas las respuestas.
 
Excuse me, I wasn't clear in my request. The code we need to implement is Code 128, but we haven't been able to do it yet. Thank you for all the responses.
 
Hi @FGARCIA1

Ok! I implemented this barcode a lot of years ago. But I've refreshed. Code128 has diferentes encodes A, B or C, depends characters to represent, for example, C is only for numbers, B could you represent numbers and characters, A is the most complete represents all ASCII characters.

Code128 has a Start characters + string to encode + Control character / Checksum + Finish Character

Code128A start with Ë, B with Ì and C with Í and all types -A,B,C- finish with character Î (ASCII)

Control character or Checksum is calculated with the sum of all character values (include start character) for their weighting/position (from left to right) module 103. Characters values you can looking in idautomation web and a lot of webs. It's basically ASCII value - 32.

For example: CODE-128 for type B encoded:
Start B = 104, C = 35, O=47, D=36, E=37, -=13, 1=17, 2=18, 3=24

104+(35*1)+(47*2)+(36*3)+(37*4)+(13*5)+(17*6)+(18*7)+(24*8) = 974 module 103 = 47, the character of value 47 is O.
1714030849442.png

So ÌCODE-128OÎ and it envolves with Code128 Font
1714030865296.png

Other examples:
1714030990733.png
1714031831559.png

You can download ttf font, for example here: https://fonts.google.com/specimen/Libre+Barcode+128

Fonts:
https://www.barcodefaq.com/1d/code-128/
https://en.wikipedia.org/wiki/Code_128


I hope helpfull for you.

Regards.
 

Attachments

  • 1714030974261.png
    1714030974261.png
    6.3 KB · Views: 0
There is a function that you can use in the BIP template to do the code 128 encoding. Here is the info from oracle support.

Since tools release 8.98.3.0 we include a newer BI Publisher core engine (10.1.3.4.1) which has built-in support for barcodes 128a,b,c. The barcode function can be invoked directly using the following command in your RTF template:
<?format-barcode:FieldName;'code128b'?>
Where FieldName is the name of the dynamic field you want to convert to Barcode 128b.
You can use encodings 128a and 128c as well, for example:
<?format-barcode:FieldName;'code128a'?>
<?format-barcode:FieldName;'code128c'?>
 
There is a function that you can use in the BIP template to do the code 128 encoding. Here is the info from oracle support.

Since tools release 8.98.3.0 we include a newer BI Publisher core engine (10.1.3.4.1) which has built-in support for barcodes 128a,b,c. The barcode function can be invoked directly using the following command in your RTF template:
<?format-barcode:FieldName;'code128b'?>
Where FieldName is the name of the dynamic field you want to convert to Barcode 128b.
You can use encodings 128a and 128c as well, for example:
<?format-barcode:FieldName;'code128a'?>
<?format-barcode:FieldName;'code128c'?>
You are right Scott! much easier :D In my case implement to report to, and it's funnest enconde and understand how works :)
 
Back
Top