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
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
That was the first thing I looked at -- they are not there when viewed with the TRichView editor !!!!
JF