我遇到了以pdf格式包装文本的问题。我使用下面的jrxml和datasource来生成pdf,它在iReport预览模式下工作正常。但是,它在导出的PDF中丢失了最后一行。它仅在文本宽度非常接近字段宽度时触发
任何人都有并且知道错误会是什么?
这是JRXML源
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report3" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="515" leftMargin="40" rightMargin="40" topMargin="100" bottomMargin="20" uuid="95b76e31-975e-4830-af1c-53ca2b77f1dc">
<queryString language="xPath">
<![CDATA[/pdfg_report_data//record-detail]]>
</queryString>
<field name="examination" class="java.lang.String">
<fieldDescription><![CDATA[examination]]></fieldDescription>
</field>
<detail>
<band height="31" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement x="173" y="15" width="322" height="15" uuid="e1ef4821-5eae-4bc3-8a8b-ac0a6d58b0f1"/>
<box topPadding="1"/>
<textElement>
<font fontName="Times New Roman" size="11" isBold="false" pdfEncoding="Cp1251"/>
</textElement>
<textFieldExpression><![CDATA[$F{examination}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
这是XML数据源
<pdfg_report_data>
<record-detail>
<examination>CT Thorax(Plain+Contrast), CT Aen(Plain+Contrast), CTabcd(Plain+Contrast), CT Nasopharynx(Plain+Contrast), CT qwerasdf</examination>
</record-detail>
</pdfg_report_data>