我正在使用ireport-4.5.0,jasper-reports-4.5.0.I試圖將邊框添加到列標題。雖然我使用Google搜索,我們可以使用矩形獲得邊框。我使用了矩形,但沒有獲得邊框。下面是我正在使用的代碼。如何使用矩形獲取我的報告列標題的邊框
<columnHeader>
<band height="39" splitType="Stretch">
<rectangle>
<reportElement x="131" y="0" width="424" height="39"/>
</rectangle>
<rectangle>
<reportElement x="0" y="1" width="131" height="38"/>
</rectangle>
<staticText>
<reportElement x="11" y="16" width="108" height="14"/>
<textElement>
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Business Name]]></text>
</staticText>
<staticText>
<reportElement x="154" y="10" width="361" height="20"/>
<textElement textAlignment="Center">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Sales Report]]></text>
</staticText>
</band>
</columnHeader>
任何一個人能指出我正確的方向,我犯了錯誤。
在此先感謝。
你可以看一下[在JasperReports中添加表格邊框](http://stackoverflow.com/q/10278067/876298)發佈 –
嗨亞歷克斯,我不想使用填充和邊界。我只需要使用矩形。我編輯了我原來的問題。 – NSS
Bcoz我需要將邊框添加到子報表中。我認爲我們沒有用於子報表的填充和邊框。所以我只需要使用矩形。 – NSS