jasper报告和iReport的版本兼容性问题

时间:2011-09-16 17:14:57

标签: jasper-reports ireport

我有一个现有的jrxml文件,格式如下:

    <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="Opaque" x="2" y="2" width="774" height="20" forecolor="#000000" backcolor="#EAECEF"/>
                <box>
                    <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>....
                    <leftPen lineWidth=

当我使用iReport 3.7.0或4.1.1编辑jrxml文件时,它会将该xml的格式更改为以下内容:

<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>

如何保留jrxml文件的格式?

0 个答案:

没有答案