如何使碧玉报告段落后休息(How to make add break after paragrap

2019-06-23 11:31发布

我想问一下。 如何在一个文本字段段之后增加休息。 例如,

报告是文字作品(通常写作,演讲,电视,或薄膜)与传递信息的具体意图制造。

是这样的: -

"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

Answer 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>

有关使用样式的文本的详细信息在这里 。



文章来源: How to make add break after paragraph in jasper reports