0

I am building a custom invoice for my Openbravo POS installation, Everything works well but on the area that it should show the barcode of the invoice ID it only show's it in numbers(text)

here is the code in my report file

<imageExpression class="java.awt.Image"><![CDATA[com.openbravo.pos.util.BarcodeImage.getBarcodeEAN13($F{TICKET}.printId())]]></imageExpression>
Alex K
  • 22,315
  • 19
  • 108
  • 236
Johan H.
  • 157
  • 3
  • 14

2 Answers2

1

I've always used Barcode4J in my jasper reports and it works well. Moreover, iReports does already include its jar, so you can just drag-n-drop the barcode component on the palette. If you're not using iReport to design the jrxml, here it is a question about this library: Barcode4J-StackOverflow ,

and here it is an overview :Barcode4J Sample

Community
  • 1
  • 1
Endrik
  • 2,238
  • 3
  • 19
  • 33
0

EAN13 only accept 12 digit number, any barcode less than 12 digit will appear as numeric value in abox

moha
  • 1