Why does the .rtf file I create in Word look so much different (some formatting) than when I load it into an RTFTextBox in VB?
VB Code:
rtfHelp.LoadFile App.Path & "\test.rtf", rtfRTF
Printable View
Why does the .rtf file I create in Word look so much different (some formatting) than when I load it into an RTFTextBox in VB?
VB Code:
rtfHelp.LoadFile App.Path & "\test.rtf", rtfRTF
Im not sure, i always have this problem. When you mean formatting, say if you made text Size 28, Bold and Red. If you load it in word does it go black, default size and non bold? If so that happened to me all the time. Hopefully someone can help you, and i will also get the answer.
The RichTextBox does not support the full range of RTF formatting.
From MSDN topic - Supported RTF Codes
The RichTextBox control recognizes the following RTF (Rich Text Format) codes. All other RTF codes are ignored by the control when loading text.
Note Some of the codes listed below may not appear as expected. For example, the UnderlineDouble (uldb) code appears as a single underline.
Warning If a code is not explicitly supported, it may be stripped from the RTF source file when the SaveFile method is used.
That sucks:(
brucevde
Well, that no good! How does on create a document that will show up properly in the RTFTextBox?