簡體   English   中英

如何使用Barcode4j在Jasper Report中設置代碼128-C?

[英]How to set the code 128-C in Jasper Report using Barcode4j?

美好的一天!

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

我相信默認設置為ABC。 我在此鏈接中看到了http://barcode4j.sourceforge.net/2.1/symbol-code128.html ,這是默認配置。

在哪里可以找到此代碼進行編輯,還是使用Jasper Report進行配置的另一種方式?

順便說一句,我使用iReport 3.6.7是有原因的。

謝謝。

我遇到了同樣的問題,但是經過一些谷歌搜索后,我只是在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 )鏈接...

希望能幫助到你 !!!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM