VORiAND Posted November 15, 2018 Share Posted November 15, 2018 I want to show on my Jasper Report one EAN13 barcode WITH numbers. So far the preview in JasperSoft Studio 6.5.1 is working great, I see the barcode and the text under it:This is the code part of it in my .jrxml:<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>[/code]My problem is, that if I build this .jasper report and deploy is to my Java webapp and print it out into .pdf the text under the barcode is empty or white, but I see there nothing, only the barcode:What do I need to change to view the text also in the webapp version of the report?Thank you. Link to comment Share on other sites More sharing options...
hozawa Posted November 15, 2018 Share Posted November 15, 2018 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. Link to comment Share on other sites More sharing options...
VORiAND Posted November 16, 2018 Author Share Posted November 16, 2018 I tried to make the barcode element bigger, but nothing changed. What do you mean by "Fixing barbeque and replacing it" ? What exactly did you do?This is my JasperSoft Studio editor view. The barcode elements dimensions are now: width: 140px, height: 51px 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