Jasper报告不会在第一页上打印PDF

时间:2017-04-25 07:47:41

标签: jasper-reports

我在报告中有标题,页眉和细节带。

细节带由一个文本字段组成,该字段可以包含任何长度的数据。 问题是,当数据超出带高时,额外的文本按预期打印在第二张纸上,但第一张纸上的文字不打印。

除长文本外,所有字段都打印在第一页。

正如您在图像中看到的那样,第一个细节正确显示,但是根本没有显示多个单词的底部。

enter image description here

以下是细节乐队的片段。

<detail>
        <band height="404" splitType="Immediate">
            <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                <reportElement stretchType="RelativeToTallestObject" x="23" y="0" width="532" height="20" uuid="5588cf7f-d3a0-4a40-95e2-6fe1e4526652"/>
                <textElement>
                    <font fontName="Calibri" size="11" isBold="true" isItalic="true"/>
                </textElement>
                <textFieldExpression><![CDATA[$F{sitevisit}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="36" y="20" width="100" height="20" uuid="e5d83698-ea4b-4680-8a4d-5a838df139f5"/>
                <text><![CDATA[Comments:]]></text>
            </staticText>
            <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                <reportElement positionType="Float" stretchType="RelativeToTallestObject" mode="Opaque" x="23" y="40" width="532" height="334" isPrintWhenDetailOverflows="true" uuid="d3678e27-3595-4a3e-b10c-84df20e68731">
                    <property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/>
                </reportElement>
                <box>
                    <pen lineWidth="0.5"/>
                    <topPen lineWidth="0.5"/>
                    <leftPen lineWidth="0.5"/>
                    <bottomPen lineWidth="0.5"/>
                    <rightPen lineWidth="0.5"/>
                </box>
                <textElement>
                    <font fontName="Calibri" size="11"/>
                </textElement>
                <textFieldExpression><![CDATA[$F{postsitevisitcomments}]]></textFieldExpression>
            </textField>
        </band>
    </detail>

0 个答案:

没有答案