Hello,
I got an issue when trying to load a rtf.
The method "LoadRTF" of TRichView returns false when trying to load this rtf (see in attached).
Has anyone have an idea about the issue ?
Thank's
Problem formatting RTF
Problem formatting RTF
- Attachments
-
- memo_test.rtf
- (4.04 KiB) Downloaded 1149 times
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Problem formatting RTF
This RTF has the following code for a font table:
According to RTF specification, "\f" is required in font table entries. So TRichView treats "{\af2\fcharset0 Calibri;}" as an error.
Code: Select all
{\rtf1\ansi{\fonttbl{\af0\fcharset0 Times New Roman;}
{\f1\fcharset0 Times New Roman;}
{\af2\fcharset0 Calibri;}
{\f3\fcharset0 Calibri;}
}