Font style not displayed correctly in TRichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
mxMartin
Posts: 1
Joined: Wed Dec 20, 2017 1:37 pm

Font style not displayed correctly in TRichViewEdit

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Font style not displayed correctly in TRichViewEdit

Post by Sergey Tkachenko »

Make sure that
RichViewEdit1.RTFReadProperties.TextStyleMode = RichViewEdit1.RTFReadProperties.TextStyleMode = rvrsAddIfNeeded
Post Reply