Barcode text is empty using Jasper Report and Barbecue

4.2k views Asked by At

I want to show on my Jasper Report one EAN13 barcode WITH text. So far the preview in JasperSoft Studio 6.5.1 is working great, I see the barcode and the text under it:

preview in JasperSoft Studio

This is the code part of it:

    <componentElement>
        <reportElement positionType="FixRelativeToBottom" x="0" y="111" width="130" height="30" uuid="48d9d636-7e04-43df-9fa2-5c3f6edf27da"/>
        <c:barbecue xmlns:c="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" type="EAN13" drawText="true" checksumRequired="false">
            <c:codeExpression><![CDATA[$F{EAN}]]></c:codeExpression>
        </c:barbecue>
    </componentElement>

My problem is, that if I build this .jasper report and deploy is to my Java webapp and print it out into one .pdf the text under the barcode is empty or white, but I see there nothing, only the barcode.

empty text under barcode

What do I need to change to view the text also in the webapp version of the report? Thank you.

EDIT.:

I got this answer on the Jaspersoft forum:

"It's not really a problem with JasperReports but with Barbeque. There's a bug in calculating the text area size. Fixing barbeque and replacing it in JasperReports solved the problem for me. "

Sadly I'm not closer to solve the issue, because I tried to resize the barcode element to the possible maximum, but nothing changed...

0

There are 0 answers