Results 1 to 5 of 5

Thread: (Resolved) Viewing RTF File

  1. #1

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    (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:
    1. rtfHelp.LoadFile App.Path & "\test.rtf", rtfRTF
    Last edited by randem; Dec 10th, 2003 at 05:43 PM.

  2. #2
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    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.

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    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.

  4. #4
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    That sucks

  5. #5

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    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
  •  



Click Here to Expand Forum to Full Width