Hi,
I am trying to get my way around jasperreports but I can seem to understand the simple tutorials that I am getting from the net.
Here's what I want. I wanted to generate a 2 columns 2 rows report wherein I will send the data in the jrxml file. But I cant seem to get past the compiler. It says "element bottom reaches outside band area". I thought I already set the height to 100 and the height of the reportelement is only 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>
I am not sure is it considered illegal to have two band tag in one detail tag? Any help please?