# Rtf fields, editing en jasper reports

**URL:** <https://forum.servoy.com/t/rtf-fields-editing-en-jasper-reports/9974>\
**Category:** Classic Servoy\
**Created:** [December 4, 2008, 8:42am UTC](https://forum.servoy.com/t/rtf-fields-editing-en-jasper-reports/9974 "2008-12-04T08:42:29Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [December 4, 2008, 8:42am UTC](https://forum.servoy.com/t/rtf-fields-editing-en-jasper-reports/9974/1 "2008-12-04T08:42:29Z")

</div>

Hi,

We consider using Rtf\_areas for certain fields on a form.

Does anyone have experience in using Rtf Areas ( also the combination with Jasper Reports) :

I can not find much in the documentation , so I have a view observations and questions

1. Sometimes ( not reproducible yet ) when I have several lines of text in a Rtf\_area and , for instance, make the third line red it looks okay in Servoy.  
But when I print it (Preview) using Jasper Reports the third line AND all lines after the third line are red.  
Anyone seen that and found the cause ?

2. In a “normal” text\_area that has a fieldlength of 100 characters, you can enter up to 100 characters and then you can not type anymore characters.

In a Rtf\_Area you can type more then 100 characters, but when you save it, the text after 100 characters it is truncated.  
And (of course) the number of characters on screen is less then 100 because the rtf code that is in the field is not shown on screen, but will be stored in  
the database.

Is this expected behavior ?

1. When copying text in other Rtf editors (like WordPad) you can select a portion of a text that’s is colored red and paste it somewhere else and it stays red,

If you do this in Servoy, the text gets the color that is active at the location where you paste it.

Is this expected behavior ?

1. In other Rtf editors, when you set the cursor in a text that is for instance bold and Courier New, the menu shows that this is the case.

In Servoy rtf\_area the text toolbar always says Tahoma 11 non-bold, etc. no matter which text is selected in the rtf\_area.

Is this expected behavior ?

1. Would it be possible tot start WordPad as the editor for the rtf\_area ?

Will be continued I guess…

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [December 4, 2008, 10:02am UTC](https://forum.servoy.com/t/rtf-fields-editing-en-jasper-reports/9974/2 "2008-12-04T10:02:41Z")

</div>

I can answer question 2: yes, that is expected. What is actually stored in the database is RTF code. And that, of course, contains much more than what you type. It is just like HTML. All the HTML tags that you don’t see on screen have to be stored. So there is really much more text than what your user typed. Truncation has to happen then…

---

<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:** [December 4, 2008, 4:36pm UTC](https://forum.servoy.com/t/rtf-fields-editing-en-jasper-reports/9974/3 "2008-12-04T16:36:27Z")

</div>

I guess there are more people who use formatted text in there Servoy forms.

Are you using Html\_area or Rtf\_area or something else ?

Are you using a bean/plugin for the formatting ?

Regards,
