我試圖繞過JasperReports,但我似乎理解我從網上獲得的簡單教程。JasperReports創建兩列和兩行
這是我想要的。我想生成一個2列2行報告,其中我將發送jrxml文件中的數據。但我似乎無法超越編譯器。它說element bottom reaches outside band area
。我以爲我已經將高度設置爲100和reportelement的高度只有24
<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="Report" pageWidth="612" pageHeight="792" topMargin="0" bottomMargin="0" leftMargin="0" rightMargin="0">
<detail>
<band height="100">
<staticText>
<reportElement x="0" y="0" width="69" height="24" />
<textElement/>
<text>
<![CDATA[Column Number 1: ]]>
</text>
</staticText>
<staticText>
<reportElement x="140" y="0" width="79" height="24" />
<text>
<![CDATA[Column Number 2: ]]>
</text>
</staticText>
</band>
<band height="100">
<staticText>
<reportElement x="0" y="200" width="69" height="24" />
<textElement/>
<text>
<![CDATA[Column Number 3: ]]>
</text>
</staticText>
<staticText>
<reportElement x="140" y="200" width="79" height="24" />
<text>
<![CDATA[Column Number 4: ]]>
</text>
</staticText>
</band>
</detail>
</jasperReport>
我不知道是不是算違法有兩個帶標籤的一個細節標籤?
謝謝。我會研究這個工具。 – 2010-09-01 05:23:37
@Mark Estrada很高興爲您提供幫助。請看詳細的答案。它應該澄清你的問題。 – Gordon 2010-09-01 08:37:28