Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
13038 Tampilan

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 ?

Avatar
Buang
Jawaban Terbai

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>

Avatar
Buang
Penulis

tested the code and it does not work

Jawaban Terbai

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.

Avatar
Buang