Come si crea un report con dati simili a una tabella?Aggiunta del bordo della tabella in jasperreports
Sono stato in grado di creare un rapporto con i dettagli di seguito. Organizza i dati in una struttura simile a una tabella.
<jasperReport>
.
.
<pageHeader>
<band height="30">
<staticText>
<reportElement x="0" y="0" width="69" height="24" />
<textElement verticalAlignment="Bottom" />
<text><![CDATA[ID: ]]></text>
</staticText>
<staticText>
<reportElement x="140" y="0" width="69" height="24" />
<textElement verticalAlignment="Bottom" />
<text><![CDATA[NAME: ]]></text>
</staticText>
<staticText>
<reportElement x="280" y="0" width="69" height="24" />
<textElement verticalAlignment="Bottom" />
<text><![CDATA[AGE: ]]></text>
</staticText>
</band>
</pageHeader>
<detail>
<band height="30">
<textField>
<reportElement x="0" y="0" width="69" height="24" />
<textFieldExpression class="java.lang.String"><![CDATA[$F{id}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="140" y="0" width="69" height="24" />
<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="280" y="0" width="69" height="24" />
<textFieldExpression class="java.lang.String"><![CDATA[$F{age}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
Ma le righe e le colonne non ha confini? Come posso ottenere questo risultato in Jasperreport 4.5?
Grazie
hi .. @ Alex..can aggiungiamo soltanto bordo destro a particolari textField/etichetta dalla GUI (iReport)? Non posso farlo..una tua idea? Grazie –
@VishalZanzrukia Sì, certo. Stai facendo qualcosa di sbagliato –
Ciao .. @ Alex Grazie, ma, non riesco a ottenere alcuna opzione nella GUI .. o posso aggiungere il bordo a tutti i lati o no qualsiasi lato con l'opzione "Padding And Borders" che hai citato. Per favore, aiutami come? –