0

Good Day!

Anyone know how to set the Code 128-C in Jasper Report using Barcode4j?

I believed that the default is set to ABC. I saw in this link http://barcode4j.sourceforge.net/2.1/symbol-code128.html and this is the default configuration.

Where I can find this code to edit it, or is the other way that I can configure using Jasper Report?

Btw, I'm using iReport 3.6.7 for a reason.

Thanks.

4

1 回答 1

0

我遇到了同样的问题,但经过一些谷歌搜索后,我只是在 C-DATA 中添加了一些字符串......

试试这个代码。

<componentElement>
    <reportElement uuid="a2f054f0-4729-4843-af96-c34c9a84b84c" x="1" y="50" width="93" height="41"/>
    <jr:Code128 textPosition="bottom">
        <jr:codeExpression>
            <![CDATA["TESTING 123"]]>
        </jr:codeExpression>
    </jr:Code128>
</componentElement>

或者你可以通过这个(http://www.keepdynamic.com/barcoding/barcode-ireport.shtml)链接......

希望能帮助到你 !!!

于 2014-05-14T12:31:31.550 回答