我在列標題區域中有列標題,我想凍結並使細節帶(在顯示實際數據的位置)可滾動。如何凍結iReport/Jasper報告中的列標題
這裏是列標題代碼段
<columnHeader>
<band height="36" splitType="Stretch">
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="1410" y="0" width="113" height="34" isRemoveLineWhenBlank="true" forecolor="#404040" backcolor="#BBD7EF"/>
<textElement>
<font fontName="Trebuchet MS" size="13" isBold="true"/>
</textElement>
<text><![CDATA[Extra Hrs Amount]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="1616" y="0" width="90" height="34" isRemoveLineWhenBlank="true" forecolor="#404040" backcolor="#BBD7EF"/>
<textElement>
<font fontName="Trebuchet MS" size="13" isBold="true"/>
</textElement>
<text><![CDATA[Parking Fees]]></text>
</staticText>
<staticText>
<reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="1798" y="0" width="92" height="34" isRemoveLineWhenBlank="true" forecolor="#404040" backcolor="#BBD7EF"/>
<textElement>
<font fontName="Trebuchet MS" size="13" isBold="true"/>
</textElement>
<text><![CDATA[Net Payment]]></text>
</staticText>
</band>
</columnHeader>
你可以發佈的代碼段和小說明你如何做,因爲它不清楚... – Anil
@Vinay你談論xls文檔? –
不,HTML報告 – n92