Barcode text is empty using Jasper Report and Barbecue










0















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[$FEAN]]></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...










share|improve this question
























  • Looks like a font issue. Did you try to use different fonts? Did you try to use font extensions?

    – Alex K
    Nov 15 '18 at 17:56











  • I don't know how to change the font sadly in JasperSoft Studio... Can I do this via source code? Font extension is new to me, can you send me a description about it?

    – VORiAND
    Nov 15 '18 at 19:34











  • Use custom fonts when creating pdf using iReport & When export a report to PDF change the font

    – Alex K
    Nov 15 '18 at 19:43












  • Can I do this via source code? - Yes. You can set font at jrxml file (direct or with help of style)

    – Alex K
    Nov 15 '18 at 19:47











  • Can you please post example, how to set font for this barbecue element? I can't find any setting regarding the fonts in the properties and also couldn't find anything for the source code :( The other elements have Dejavu Sant fonts and they are displayed in the pdf without any error.

    – VORiAND
    Nov 15 '18 at 20:07















0















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[$FEAN]]></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...










share|improve this question
























  • Looks like a font issue. Did you try to use different fonts? Did you try to use font extensions?

    – Alex K
    Nov 15 '18 at 17:56











  • I don't know how to change the font sadly in JasperSoft Studio... Can I do this via source code? Font extension is new to me, can you send me a description about it?

    – VORiAND
    Nov 15 '18 at 19:34











  • Use custom fonts when creating pdf using iReport & When export a report to PDF change the font

    – Alex K
    Nov 15 '18 at 19:43












  • Can I do this via source code? - Yes. You can set font at jrxml file (direct or with help of style)

    – Alex K
    Nov 15 '18 at 19:47











  • Can you please post example, how to set font for this barbecue element? I can't find any setting regarding the fonts in the properties and also couldn't find anything for the source code :( The other elements have Dejavu Sant fonts and they are displayed in the pdf without any error.

    – VORiAND
    Nov 15 '18 at 20:07













0












0








0








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[$FEAN]]></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...










share|improve this question
















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[$FEAN]]></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...







jasper-reports barcode export-to-pdf barbecue






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 15:55







VORiAND

















asked Nov 15 '18 at 13:10









VORiANDVORiAND

3682922




3682922












  • Looks like a font issue. Did you try to use different fonts? Did you try to use font extensions?

    – Alex K
    Nov 15 '18 at 17:56











  • I don't know how to change the font sadly in JasperSoft Studio... Can I do this via source code? Font extension is new to me, can you send me a description about it?

    – VORiAND
    Nov 15 '18 at 19:34











  • Use custom fonts when creating pdf using iReport & When export a report to PDF change the font

    – Alex K
    Nov 15 '18 at 19:43












  • Can I do this via source code? - Yes. You can set font at jrxml file (direct or with help of style)

    – Alex K
    Nov 15 '18 at 19:47











  • Can you please post example, how to set font for this barbecue element? I can't find any setting regarding the fonts in the properties and also couldn't find anything for the source code :( The other elements have Dejavu Sant fonts and they are displayed in the pdf without any error.

    – VORiAND
    Nov 15 '18 at 20:07

















  • Looks like a font issue. Did you try to use different fonts? Did you try to use font extensions?

    – Alex K
    Nov 15 '18 at 17:56











  • I don't know how to change the font sadly in JasperSoft Studio... Can I do this via source code? Font extension is new to me, can you send me a description about it?

    – VORiAND
    Nov 15 '18 at 19:34











  • Use custom fonts when creating pdf using iReport & When export a report to PDF change the font

    – Alex K
    Nov 15 '18 at 19:43












  • Can I do this via source code? - Yes. You can set font at jrxml file (direct or with help of style)

    – Alex K
    Nov 15 '18 at 19:47











  • Can you please post example, how to set font for this barbecue element? I can't find any setting regarding the fonts in the properties and also couldn't find anything for the source code :( The other elements have Dejavu Sant fonts and they are displayed in the pdf without any error.

    – VORiAND
    Nov 15 '18 at 20:07
















Looks like a font issue. Did you try to use different fonts? Did you try to use font extensions?

– Alex K
Nov 15 '18 at 17:56





Looks like a font issue. Did you try to use different fonts? Did you try to use font extensions?

– Alex K
Nov 15 '18 at 17:56













I don't know how to change the font sadly in JasperSoft Studio... Can I do this via source code? Font extension is new to me, can you send me a description about it?

– VORiAND
Nov 15 '18 at 19:34





I don't know how to change the font sadly in JasperSoft Studio... Can I do this via source code? Font extension is new to me, can you send me a description about it?

– VORiAND
Nov 15 '18 at 19:34













Use custom fonts when creating pdf using iReport & When export a report to PDF change the font

– Alex K
Nov 15 '18 at 19:43






Use custom fonts when creating pdf using iReport & When export a report to PDF change the font

– Alex K
Nov 15 '18 at 19:43














Can I do this via source code? - Yes. You can set font at jrxml file (direct or with help of style)

– Alex K
Nov 15 '18 at 19:47





Can I do this via source code? - Yes. You can set font at jrxml file (direct or with help of style)

– Alex K
Nov 15 '18 at 19:47













Can you please post example, how to set font for this barbecue element? I can't find any setting regarding the fonts in the properties and also couldn't find anything for the source code :( The other elements have Dejavu Sant fonts and they are displayed in the pdf without any error.

– VORiAND
Nov 15 '18 at 20:07





Can you please post example, how to set font for this barbecue element? I can't find any setting regarding the fonts in the properties and also couldn't find anything for the source code :( The other elements have Dejavu Sant fonts and they are displayed in the pdf without any error.

– VORiAND
Nov 15 '18 at 20:07












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53320254%2fbarcode-text-is-empty-using-jasper-report-and-barbecue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53320254%2fbarcode-text-is-empty-using-jasper-report-and-barbecue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3

Museum of Modern and Contemporary Art of Trento and Rovereto