1

私は最近 DynamicJasper で遊んでいて、かなり感銘を受けました。私が持っている唯一の問題は、私が作成するレポートのいくつかは、データ フィールドの左側にラベル (技術的には列ヘッダー) がある印刷フォームに似ていることです。iReport でレポートを描画する場合、これは問題ではありません。フィールドの横の詳細セクションに配置するだけです。

それは次のようになります。

サンプルデザイン

jrxml は次のようになります。

<detail>
        <band height="125" splitType="Stretch">
            <textField>
                <reportElement x="56" y="0" width="76" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$F{Column 1}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="0" y="0" width="56" height="20"/>
                <textElement/>
                <text><![CDATA[Column 1:]]></text>
            </staticText>
            <textField>
                <reportElement x="189" y="0" width="71" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$F{Column 2}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="132" y="0" width="57" height="20"/>
                <textElement/>
                <text><![CDATA[Column 2:]]></text>
            </staticText>
            <textField>
                <reportElement x="318" y="0" width="73" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$F{Column 3}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="260" y="0" width="58" height="20"/>
                <textElement/>
                <text><![CDATA[Column 3:    ]]></text>
            </staticText>
            <textField>
                <reportElement x="451" y="0" width="100" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA[$F{Column 4}]]></textFieldExpression>
            </textField>
            <staticText>
                <reportElement x="391" y="0" width="60" height="20"/>
                <textElement/>
                <text><![CDATA[Column 4]]></text>
            </staticText>
        </band>
    </detail>

Dynamic Jasperだけでこれをやってのける方法はありますか?

4

1 に答える 1

2

これは現在 DynamicJasper では実行できません。新しいLayoutManager実装が必要になります。

Dj は、列ベースのレポートのみを解決することを目的としています。

于 2011-11-05T07:29:26.077 に答える