Rtf fields, editing en jasper reports

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…

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…

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,