dgarratt Posted June 13, 2010 Share Posted June 13, 2010 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.ThanksDave Link to comment Share on other sites More sharing options...
lucianc Posted June 29, 2010 Share Posted June 29, 2010 Indeed, the JasperReports Barcode4j integration doesn't allow you to specify the template for EAN-128. Please log this as a bug using the project trackers.Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now