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

Barcode 4J doesn't work for me


andrew_50

Recommended Posts

I am working a fresh install on a new computer of Jasper Studio, and was happily trying to design a report, but...

When I dragged over the Barcode from the Palette, and chose the QR Code I wanted.

I got nothing, nothing was placed. I see nothing in the source.

Do I need to install or configure something for the 4J barcodes? I thought 4J was built in to Studio. Am I wrong?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

In fact, it gets weirder. I've been working on it this morning, and I've also found that when placing fields that also has issues.

Specifically, the field shows on the design, but I can't do anything with it, not least something as simple as select it and move it.

Studio is the newest community version and the system is:

Win 10 Pro, Version 1803, OS Build 17134.407 with Java 8 - Update 191 (64 bit) and JDK 8 - Update 172 (64 bit)

 

Link to comment
Share on other sites

Hi andrew_50,
I don't know it is helpful, but when I need to use barcode-4j I put the QRcode (It's the only one that works.), and I go to the xml code and modify QRcode for the barcode I need, in the case was the DATAMATRIX.

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0  --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports"              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"              xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"              name="Blank_A4_2"              pageWidth="595" pageHeight="842" columnWidth="555"              leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"              uuid="0b3c42fb-64b8-4531-b4c5-605d1bb06199">    <property name="com.jaspersoft.studio.data.defaultdataadapter"              value="One Empty Record"/>    <queryString><![CDATA[]]></queryString>    <background><band splitType="Stretch"/></background>    <title><band height="79" splitType="Stretch"/></title>    <pageHeader><band height="35" splitType="Stretch"/></pageHeader>    <columnHeader><band height="61" splitType="Stretch"/></columnHeader>    <detail>        <band height="125" splitType="Stretch">            <componentElement>                <reportElement x="0" y="0" width="99" height="29"                               uuid="5af81c13-024a-4c4a-b712-cb98a81396a7"/>                <jr:QRCode xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components"                           xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">                    <jr:codeExpression><![CDATA["123456789"]]></jr:codeExpression>                </jr:QRCode>            </componentElement>            <componentElement>                <reportElement x="450" y="0" width="99" height="29"                               uuid="22a4923a-4ae4-4c1e-a67c-23fa9550212b"/>                <jr:DataMatrix xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components"                               xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">                    <jr:codeExpression><![CDATA["123456789"]]></jr:codeExpression>                </jr:DataMatrix>            </componentElement>        </band>    </detail>    <columnFooter><band height="45" splitType="Stretch"/></columnFooter>    <pageFooter>  <band height="54" splitType="Stretch"/></pageFooter>    <summary>     <band height="42" splitType="Stretch"/></summary></jasperReport>[/code]

This is a example, I hope it helped you.

Link to comment
Share on other sites

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...