By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,374 Members | 1,768 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,374 IT Pros & Developers. It's quick & easy.

convert from RTF to Text

P: 3
I am using richtextbox control but I save data in richtext format and text format.
I am just passing rtf to my business layer. Is there anyway I can convert rtf into plain text format.

Thanks in advance

xitij
Apr 23 '07 #1
Share this Question
Share on Google+
2 Replies


P: 28
Post it through a temp variable of string.

string temp = this.richTextBox1.Text;
this.richTextBox1.Text = temp;

this would disable rtf of all Text in richTextBox1;
Apr 23 '07 #2

P: 3
I want to convert this in Business Layer where I dont want to use richtextbox.

Is there any function that converts RTF to plain text.

Thanks

Post it through a temp variable of string.

string temp = this.richTextBox1.Text;
this.richTextBox1.Text = temp;

this would disable rtf of all Text in richTextBox1;
Apr 23 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.