Skip to Content
0

How to overwrite original RTF text with font/styling in Crystal Report 11?

Apr 21, 2017 at 01:00 PM

44

avatar image

The font/styling from the original RTF text is overriding any font/styling I select on the font tab in the Format Editor.

Please help.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ian Waterman Apr 21, 2017 at 01:35 PM
0

I assume you are using RTF text interpretation in which case RTF format will prevail.

You could replace RTF field with a formula and use search and replace whereby you replace the font tag with the Font you want for the report.

RTF code will look something like

{\fonttbl{\f1\froman\fprq0\fcharset0 Times New Roman;}\par Welcome to New York \par\par These are all the exciting things you can do during your stay. \par \par}

You will need to replace froman and the description Times New Roman

So your formula will be something like

Replace(Replace({YourRTFField}, 'froman','fswiss'),'Times New Roman', 'Arial')

Never tried this myself so good luck!

Ian

Share
10 |10000 characters needed characters left characters exceeded