converting compressed Rich text (C#)

Posted by Code Smack on Stack Overflow See other posts from Stack Overflow or by Code Smack
Published on 2010-05-06T09:01:44Z Indexed on 2010/05/06 9:08 UTC
Read the original article Hit count: 214

Filed under:
|
|
|
|

Hello,

I have a string with CompressedRichText in it. I want to uncompressed it to standard RTF and then to plain Text.

I am using VS 2008 C# Windows Application.

I found references to C++ code to do it, but nothing directly in C#.

here is a sample of what I am thinking... not much code though...

private string _CompressedRichText = "5A46751234E1234A3214C12D34213412346F4";

private void button1_Click(object sender, EventArgs e)
{
    //Convert to Uncompressed RTF

    richTextBox1.Text = //Some action

    //Convert to text

    textBox1.Text =  //some action


}

This will at least give you an example of what I am thinking.

© Stack Overflow or respective owner

Related posts about c#

Related posts about rtf