Jasper Report HTML bullet hanging indent

后端 未结 2 963
小鲜肉
小鲜肉 2021-01-21 17:49

I have a Jasper report which uses HTML markup tag to display the li tag list. However, it seems that even with the latest version of the Jasper report, it still cannot do the h

相关标签:
2条回答
  • 2021-01-21 17:57

    I was able to achieve this by combining negative tab indent on the first line (text field page) with an equal left padding (borders page)

    enter image description here

    0 讨论(0)
  • 2021-01-21 17:59

    That is possible with padding of the element:

    Padding Dialog iReport

                <textField isBlankWhenNull="true">
                <reportElement x="170" y="10" width="400" height="15"/>
                <box leftPadding="5">
                    <topPen lineWidth="0.0"/>
                    <leftPen lineWidth="0.0"/>
                </box>
                <textElement>
                    <font fontName="Times New Roman" size="10" pdfEncoding="Cp1250"/>
                </textElement>
                <textFieldExpression class="java.lang.String"><![CDATA[$F{TASK_NAME}]]></textFieldExpression>
            </textField>
    
    0 讨论(0)
提交回复
热议问题