Page 1 of 1

Font style not displayed correctly in TRichViewEdit

Posted: Wed Dec 20, 2017 1:52 pm
by mxMartin
We're currently evaluating TRichViewEdit and so far we're pretty impressed by the offered functionality.

Our application uses Report Builder as a reporting engine for end-users. The reports are created with the default Report Builder components and exported to RTF via the default Report Builder device TppRtfDevice. In one report, one label has bold font. Text objects following after this label are not bold:

Normal text, bold text, normal text

The resulting RTF is not displayed correctly in TRichViewEdit: all the text from the label onwards is displayed bold:

Normal text, bold text, normal text

The same RTF in Microsoft Word is displayed correctly. How can this be fixed?

Re: Font style not displayed correctly in TRichViewEdit

Posted: Thu Dec 21, 2017 6:49 am
by Sergey Tkachenko
Make sure that
RichViewEdit1.RTFReadProperties.TextStyleMode = RichViewEdit1.RTFReadProperties.TextStyleMode = rvrsAddIfNeeded