Jasper reports jasper reports和iReport的版本兼容性问题

Jasper reports jasper reports和iReport的版本兼容性问题,jasper-reports,ireport,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="#

我有一个现有的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中设置兼容性选项?
<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>