开发者

version compatibility issues with jasper reports and iReport

开发者 https://www.devze.com 2023-04-05 15:21 出处:网络
I have an existing jrxml files which is formatted like the code below: <band height=\"25\" isSplitAllowed=\"true\">

I have an existing jrxml files which is formatted like the code below:

    <band height="25" isSplitAllowed="true">
            <rectangle radius="0">
                <reportElement key="rectangle-2" mode="Opaque" x="0" y="0" width="782" height="25" forecolor="#000000" backcolor="#EAECEF"/>
                <graphicElement fill="Solid">
                    <pen lineWidth="0.5" lineStyle="Solid"/>
                </graphicElement>
            </rectangle>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement key="textField-4" mode开发者_JS百科="Opaque" x="2" y="2" width="774" height="20" forecolor="#000000" backcolor="#EAECEF"/>
                <box>
                    <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>....
                    <leftPen lineWidth=

When I edit the jrxml file using iReport 3.7.0 or 4.1.1 it will change the format of that xml to the something below:

<band height="25" splitType="Stretch">
            <rectangle radius="0">
                <reportElement key="rectangle-2" mode="Opaque" x="0" y="0" width="782" height="25" forecolor="#000000" backcolor="#EAECEF"/>
                <graphicElement fill="Solid">
                    <pen lineWidth="0.5" lineStyle="Solid"/>
                </graphicElement>
            </rectangle>
            <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
                <reportElement key="textField-4" mode="Opaque" x="2" y="2" width="774" height="20" forecolor="#000000" backcolor="#EAECEF"/>
                <box>
                    <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
                    <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#FFFFFF"/>
                </box>

How can I preserve the format of the jrxml file?

0

精彩评论

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

关注公众号