跳至内容
菜单
此问题已终结
3 回复
13045 查看

I can add underline by using the tag <u> </u>

Then I try added <b> </b> and <i> </I> to my rml report but it does not work.

What should I put to make bold and italic ?

形象
丢弃
最佳答案

Hi wille,

use this for in your rml file:

<paraStyle name="terp_header" fontSize="12.0" leading="15" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>

<td><para style="terp_header"><b>Taxes</b></para></td>

<d><para style="terp_header"><i>Amount</i></para></td>

形象
丢弃
编写者

tested the code and it does not work

最佳答案

Hi Wille,

To manage bold and italic into RML you need to use different font like below.

For Bold : 

<paraStyle name="terp_default_Centre_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>

For Italic : 

<paraStyle name="terp_default_Italic" rightIndent="0.0" leftIndent="20.0" fontName="Helvetica-Oblique" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>

when you use style="terp_default_Centre_9_Bold" then it will give you bold font and when you use style="terp_default_Italic" then it will give you italic font.

I hope it will useful for you.

形象
丢弃