最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Jasper Report blank page when overflow - Stack Overflow

programmeradmin4浏览0评论

In the summary of my report I have added a textfield (to add some legal info at the bottom of the report ):

<textField textAdjust="StretchHeight">
                <reportElement  positionType="Float" isPrintRepeatedValues="false" mode="Transparent" x="0" y="192" width="554" height="19" uuid="7bdb63dd-8b2b-4e31-a027-0fa79289b8b8">
                    <property name="com.jaspersoft.studio.unit.width" value="px"/>
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <box topPadding="5" leftPadding="0" bottomPadding="0" rightPadding="0">
                    <pen lineWidth="1.0"/>
                    <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
                    <leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
                    <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
                    <rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
                </box>
                <textElement textAlignment="Left" verticalAlignment="Top"/>
                <textFieldExpression><![CDATA[$P{Text}]]></textFieldExpression>
            </textField>

The text is dynamic from a parameter and consist of severals lines. When the textfield fit on the current page all is fine.

Problem : Every time the textfield is split in 2 pages. The report has an extra blank page.

When I add border to the text field we can see that it is over stretch to the next page :

How can I prevent this ?

note I use Jasper 6.20.1

发布评论

评论列表(0)

  1. 暂无评论