Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 21, 2017 at 01:35 PM

    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!


    Add comment
    10|10000 characters needed characters exceeded