Jasper Report HTML bullet hanging indent

时间秒杀一切 提交于 2019-12-02 01:22:31

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)

That is possible with padding of the element:

            <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>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!