【问题标题】:How to set the code 128-C in Jasper Report using Barcode4j?如何使用 Barcode4j 在 Jasper Report 中设置代码 128-C?
【发布时间】:2014-04-10 01:22:19
【问题描述】:

美好的一天!

有人知道如何使用 Barcode4j 在 Jasper Report 中设置 Code 128-C 吗?

我相信默认设置为 ABC。我在这个链接中看到http://barcode4j.sourceforge.net/2.1/symbol-code128.html 这是默认配置。

在哪里可以找到此代码来编辑它,或者我可以使用 Jasper Report 进行配置的其他方式?

顺便说一句,我使用 iReport 3.6.7 是有原因的。

谢谢。

【问题讨论】:

    标签: jasper-reports barcode4j


    【解决方案1】:

    我遇到了同样的问题,但经过一些谷歌搜索后,我只是在 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)链接...

    希望对你有帮助!!!

    【讨论】:

    • 感谢您的回复!但我改用烧烤了。
    猜你喜欢
    • 2011-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-20
    相关资源
    最近更新 更多