|
-
Dec 10th, 2003, 04:03 PM
#1
(Resolved) Viewing RTF File
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
Last edited by randem; Dec 10th, 2003 at 05:43 PM.
-
Dec 10th, 2003, 04:11 PM
#2
Supreme User
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.
-
Dec 10th, 2003, 05:34 PM
#3
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.
-
Dec 10th, 2003, 05:35 PM
#4
-
Dec 10th, 2003, 05:44 PM
#5
brucevde
Well, that no good! How does on create a document that will show up properly in the RTFTextBox?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|