# iReport and RTF text

**URL:** <https://forum.servoy.com/t/ireport-and-rtf-text/10332>\
**Category:** Classic Servoy\
**Created:** [February 27, 2009, 10:11pm UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332 "2009-02-27T22:11:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsgrahamus](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jsgrahamus](https://forum.servoy.com/u/jsgrahamus)\
**Post date:** [February 27, 2009, 10:11pm UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/1 "2009-02-27T22:11:18Z")

</div>

I need to print out a line of static text containing both **bold** and normal text. I’ve tried splitting the 2 types into 2 fields but that does not work well.

Thinking to use the RTF markup feature, I created a .RTF document with WordPad and copied the result into the Text field, after selecting the “Styled Text” and setting the Markup property to RTF. However, this does not produce formatted text; only the exact text I copied.

I would appreciate receiving any tips on how to create bold and regular text in the same field using this feature.

Steve

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [February 28, 2009, 9:39am UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/2 "2009-02-28T09:39:10Z")

</div>

Hi,

> Thinking to use the RTF markup feature, I created a .RTF document with WordPad and copied the result into the Text field, after selecting the “Styled Text” and setting the Markup property to RTF. However, this does not produce formatted text; only the exact text I copied.

You should not select Styled Text, only RTF markup.

I use this i combination with rtf areas in Servoy and that works fine in Jasper 3.0.

Regards,

Hans Nieuwenhuis

---

<div class="post-metadata">

**Author:** ![jsgrahamus](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jsgrahamus](https://forum.servoy.com/u/jsgrahamus)\
**Post date:** [March 2, 2009, 7:03pm UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/3 "2009-03-02T19:03:39Z")

</div>

> Hans Nieuwenhuis:  
> Hi,
> 
> > Thinking to use the RTF markup feature, I created a .RTF document with WordPad and copied the result into the Text field, after selecting the “Styled Text” and setting the Markup property to RTF. However, this does not produce formatted text; only the exact text I copied.
> 
> You should not select Styled Text, only RTF markup.
> 
> I use this i combination with rtf areas in Servoy and that works fine in Jasper 3.0.
> 
> Regards,
> 
> Hans Nieuwenhuis

Hans,

Can you give me a short example of the rtf text you put into the Text field?

Thanks, Steve

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [March 2, 2009, 7:08pm UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/4 "2009-03-02T19:08:22Z")

</div>

I do not copy/past text.

We use a rtf area in a Servoy form.

The user types text in the rtf area and then changes te color and font using the servoy font options.

Regards,

Hans

---

<div class="post-metadata">

**Author:** ![jsgrahamus](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jsgrahamus](https://forum.servoy.com/u/jsgrahamus)\
**Post date:** [March 3, 2009, 7:24pm UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/5 "2009-03-03T19:24:37Z")

</div>

> Hans Nieuwenhuis:  
> I do not copy/past text.
> 
> We use a rtf area in a Servoy form.
> 
> The user types text in the rtf area and then changes te color and font using the servoy font options.
> 
> Regards,
> 
> Hans

Thank you, Hans.

It would surely be helpful to have a small working example.

Steve

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [March 4, 2009, 6:35am UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/6 "2009-03-04T06:35:05Z")

</div>

I’ll send you an example form and report this afternoon.

Regards,

Hans Nieuwenhuis

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [March 4, 2009, 11:08am UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/7 "2009-03-04T11:08:46Z")

</div>

Attached You will find a very simple form and report.

Regards,

Hans

[testrtf.zip](https://forum.servoy.com/uploads/short-url/vPuJXBHs60s5h6rrbRVeQX9bJtj.zip) (8.7 KB)

---

<div class="post-metadata">

**Author:** ![jsgrahamus](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jsgrahamus](https://forum.servoy.com/u/jsgrahamus)\
**Post date:** [March 4, 2009, 5:30pm UTC](https://forum.servoy.com/t/ireport-and-rtf-text/10332/8 "2009-03-04T17:30:56Z")

</div>

> Hans Nieuwenhuis:  
> Attached You will find a very simple form and report.
> 
> Regards,
> 
> Hans

Thanks, Hans. I appreciate the assistance.

Steve
