About Rtf conversion
C#
3
Posts
3
Posters
0
Views
1
Watching
-
-
hi... my problem is... that I have some rtf text without Rtf headers. For example: "hell\\`b1". The plain text should be "Helló". Is there a quick way to do this translation (rtf to plain)? I know, there is a way to do it...but it is complex. thanks
-
hi... my problem is... that I have some rtf text without Rtf headers. For example: "hell\\`b1". The plain text should be "Helló". Is there a quick way to do this translation (rtf to plain)? I know, there is a way to do it...but it is complex. thanks
Hi! You could try adding a minimal RTF header yourself:
string rtf = @"{\rtf1\ansi"+myRtfFragment+"}";
richTextBox1.Rtf = rtf;
MessageBox.Show("Plain text is '"+richTextBox1.Text+"'");Regards, mav