Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8708623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:10:44+00:00 2026-06-13T04:10:44+00:00

Possible Duplicate: Loading richtextbox content from xml I am trying to save and load

  • 0

Possible Duplicate:
Loading richtextbox content from xml

I am trying to save and load the RichTextBox content from a XML file. I save the Rtf format content in my XML to include all the formatting with the data. When i try to reload the content from XML file, the RichTextBox doesn’t format the content instead it displays all the Rtf formatting code in UI.

Sample content which i try to save : Sample Text

Content displayed in RichTextBox control below:

{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs17 Sample \\b Text\\b0\\par\r\n}\r\n

Is there any solution for this? Or suggest me some alternatives to include RichContent.

You can find more information regarding this problem from this link

Thanks In Advance,
K

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:10:45+00:00Added an answer on June 13, 2026 at 4:10 am
    string rtfString = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs17 Sample \\b Text\\b0\\par\r\n}\r\n";
    richTextBox1.Rtf = rtfString;
    

    // EDIT:
    You can load this string from rtf file, but it will be long and not effective:

    richTextBox1.LoadFile(@"F:\SimpleText.rtf", RichTextBoxStreamType.RichText);
    

    But, I really don’t get it why doesn’t my first code work for you. Because it works fine for me:
    enter image description here

    I suggest You’re doing something wrong. Can You ,maybe, attach your solution some how if it’s simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Problem when loading php file into variable (Load result of php code
Possible Duplicate: Dynamic Resource Loading Android In Android, I can load a string from
Possible Duplicate: Dynamically loading an external CSS file I'm trying to create a dynamic
Possible Duplicate: Problem when loading php file into variable (Load result of php code
Possible Duplicate: Reading the last n lines from a huge text file I have
Possible Duplicate: Loading remote images How to put a picture from the Internet in
Possible Duplicate: Dynamically loading a class in Java hi i am trying to create
Possible Duplicate: Serializable crash error when loading web broser from my application below a
Possible Duplicate: Loading x86 or x64 assembly I'm trying to compile Any CPU .NET
Possible Duplicate: Jquery IE6 hover problems, keeps loading background image. Hello I am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.