Rich Text stretches too much

Using FastReport 4.11.17 with TRichView V13.5 and Delphi XE2.

I have a report with a richtext object in one column displaying a simple text prepared using a TRichView editor and saved in the database.

The data band has Stretched set and the RichText object on the band has StretchMode set to smActualHeight.

When I preview or print the report the field stretches, but does so by a few extra lines. A 5-line text has about 4 extra lines added, a single-line text has space for about one and a half extra lines added.

What am I doing wrong ???

The RTF text of the 5-line field is as follows:
{\rtf1\ansi\ansicpg1252\deff0\deflang3082{\fonttbl{\f0\fnil\fcharset0 tahoma;}{\f1\fnil\fcharset0 Tahoma;}}
\viewkind4\uc1\pard\lang0\f0\fs16 Any text will do here so long as it is sufficiently long as to require two or more lines on the report.\par
And this text really does require more than one line -- more like five report lines !!!!\par
\par
\pard\lang3082\f1\par
}

The field as printed is shown below and in the attached file.

Thanks for any and all assistance,

JF

Comments

  • gpigpi
    edited 10:35AM
    Try to delete two CR at the end of your text
  • edited 10:35AM
    gpi wrote: »
    Try to delete two CR at the end of your text

    That was the first thing I looked at -- they are not there when viewed with the TRichView editor !!!!

    JF

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.