【问题标题】:How to make add break after paragraph in jasper reports如何在碧玉报告中的段落后添加中断
【发布时间】:2012-09-27 16:14:52
【问题描述】:

我想问。如何在一个文本字段中的段落后添加换行符。 例如,

报告是一种文字作品(通常是文字、演讲、电视或电影),其目的是传递信息。

变成这样:-

"A report is a textual work  line 1

(usually of writing, speech, television, or film) line 2

 made with the specific intention of line 3

 relaying information" line 4

【问题讨论】:

    标签: jasper-reports


    【解决方案1】:

    您可以使用 \n(换行符)符号,也可以使用标记语法。

    样本:

    <title>
        <band height="167" splitType="Stretch">
            <textField isStretchWithOverflow="true">
                <reportElement x="414" y="38" width="100" height="20"/>
                <textElement markup="styled"/>
                <textFieldExpression><![CDATA["A report is a textual work <br/>(usually of writing, speech, television, or film) <br/>made with the specific intention of <br/> relaying information"]]></textFieldExpression>
            </textField>
            <textField isStretchWithOverflow="true">
                <reportElement x="26" y="38" width="100" height="20"/>
                <textElement/>
                <textFieldExpression><![CDATA["A report is a textual work\n(usually of writing, speech, television, or film)\nmade with the specific intention of \nrelaying information"]]></textFieldExpression>
            </textField>
        </band>
    </title>
    

    更多关于使用样式文本is here的信息。

    【讨论】:

    • 非常感谢@Alex K.:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-25
    • 1970-01-01
    相关资源
    最近更新 更多