Jump to content
We've recently updated our Privacy Statement, available here ×

Support for Barcode4j (EAN128) Incomplete ?


dgarratt

Recommended Posts

Looking at the example for barcode4j it is only attempting to print a single application identifier in the barcode as as far as that goes its ok.

However if you want to print more that one application id in the barcode and some of those are defined as variable length you need to provide barcode4j with additional information in the form of an xml file. As sample is shown here :-

<?xml version="1.0"?>
<!DOCTYPE barcode SYSTEM "barcode4j.dtd">
<barcode>
  <ean-128>
      <height>15mm</height>
      <module-width>0.3mm</module-width>
      <check-digit-marker>ð</check-digit-marker>
      <group-separator>ñ</group-separator>
      <template>(01)n14(20)n2(17)n6(37)n4(10)an1-20</template>
      <quiet-zone enabled="true">5mm</quiet-zone>
      <human-readable>
          <placement>bottom</placement>
          <font-name>Helvetica</font-name>
          <font-size>6pt</font-size>
          <omit-brackets>false</omit-brackets>
      </human-readable>
  </ean-128>
</barcode>

The most important line is the <template> part - without which barcode4j will not be able to interpret the data string you pass to it for printing.

I've not been able to find any way of passing this information to barcode4j from a jasper report ?

If anyone reading this post can help I would be most grateful for help.

Thanks

Dave

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...