开发者

Schema Reference For JasperReports Barcode Component

开发者 https://www.devze.com 2023-01-13 22:35 出处:网络
Does anybody here knew where can I download the schema references for the barcode component开发者_如何学运维 of Jasper Reports?

Does anybody here knew where can I download the schema references for the barcode component开发者_如何学运维 of Jasper Reports?

I am thinking of using either the Barbecue or BarcodeForJ component but my problem is, I cannot find the schema for both component.

I have tried guessing this: I wanted to increase the Font Size of the human readable component.

<c:Code39 hrSize="10">
    <c:codeExpression><![CDATA["TESTING"]]></c:codeExpression>
</c:Code39>

But is says it cannot find the attribute for the element c:Code39. From where can I download this?

When I download JasperReports, I saw the schema reference for the Jasper Library but not with its component.


I haven't tested this, but reading the source would lead me to believe this should work.

What you will want to do is define a style for your sibling reportElement.

<componentElement>
    <reportElement style="Barcode" x="130" y="250" width="400" height="30"/>
    <c:Code39>
        <c:codeExpression><![CDATA["TESTING"]]></c:codeExpression>
    </c:Code39>
</componentElement>

Where the Barcode style definition's font properties are propagated to Barcode4j's font-name and font-size properties.

<style name="Barcode" isDefault="false" fontName="DejaVu Sans" fontSize="10"/>

Take a look at AbstractBarcodeEvaluator.setBaseAttributes() method found here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号