Jasper reports 如何在Jaspersoft studio中溢出后在文本字段中进行左缩进

Jasper reports 如何在Jaspersoft studio中溢出后在文本字段中进行左缩进,jasper-reports,Jasper Reports,我在jaspersoft studio 6.4.3中定义了一种样式,除了第一行之外,它应该将线条向右移动10像素。 原因是在文本字段中出现文本溢出后,第二行以相同的缩进显示在第一行下面,但我需要为我的目录更改它。 以下方法在Java中导出时效果良好,但在pdf导出后不起作用。在这种情况下,框向右移动,firstLineIndent无效 风格如下: <style name="Inhaltsverzeichnis" style="Formatvorlage Standard (klei

我在jaspersoft studio 6.4.3中定义了一种样式,除了第一行之外,它应该将线条向右移动10像素。 原因是在文本字段中出现文本溢出后,第二行以相同的缩进显示在第一行下面,但我需要为我的目录更改它。 以下方法在Java中导出时效果良好,但在pdf导出后不起作用。在这种情况下,框向右移动,firstLineIndent无效

风格如下:

    <style name="Inhaltsverzeichnis" style="Formatvorlage Standard (kleiner) + 10 Pt." hTextAlign="Left" markup="styled" fontName="Calibri" isPdfEmbedded="true" >
    <box leftPadding="10"/>
    <paragraph firstLineIndent="-10"/>
</style>

并在我的TOC中使用它:

        <band height="31" splitType="Stretch">
        <property name="local_mesure_unitheight" value="pixel"/>
        <property name="com.jaspersoft.studio.unit.height" value="px"/>
        <printWhenExpression><![CDATA[$F{level} == 1]]></printWhenExpression>
        <staticText>
            <reportElement style="InhaltsverzeichnisPunkte" mode="Transparent" x="0" y="1" width="440" height="18" uuid="b08b479c-10a8-4d87-8507-4f32fd50004f"/>
            <text><![CDATA[. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .]]></text>
        </staticText>
        <textField isStretchWithOverflow="true">
            <reportElement style="InhaltsverzeichnisPunkte" x="396" y="1" width="45" height="18" uuid="bc43bd36-7466-457c-95e6-384410c05cbe"/>
            <textElement textAlignment="Right"/>
            <textFieldExpression><![CDATA["<style backcolor='white'>"+($V{PAGE_NUMBER} + $F{pageIndex} + 3)+"</style>"]]></textFieldExpression>
        </textField>
        <textField isStretchWithOverflow="true" hyperlinkType="LocalAnchor">
            <reportElement key="" style="Inhaltsverzeichnis" mode="Transparent" x="0" y="3" width="396" height="15" uuid="b19a02f7-3d3f-4086-86ed-5dc6859e5fd1"/>
            <textFieldExpression><![CDATA["<style backcolor='white'>"+$F{label}+"</style>"]]></textFieldExpression>
            <hyperlinkAnchorExpression><![CDATA[$F{label}]]></hyperlinkAnchorExpression>
        </textField>
    </band>