john
john

Reputation: 21

How to find picture in richtext c#?

How to find pictures in richtext, is there any method for doing that?

I need to generate html from richtext so i need to find picture and find on which position is.

This is code which i use to put picture in richtext

        Clipboard cl;            
        Bitmap myBitmap = new Bitmap("c:\\time.png");
        Clipboard.SetDataObject(myBitmap);
        Clipboard.SetImage(myBitmap);         
        rchBody.Paste();

Upvotes: 0

Views: 128

Answers (1)

Anthony Queen
Anthony Queen

Reputation: 2358

While not exactly the same, have you looked at this other SO question? Convert Rtf to HTML .

The answer points you to this article: http://www.codeproject.com/Articles/27431/Writing-Your-Own-RTF-Converter

There you can get a lot of details on how to do it, including RTF with images.

Upvotes: 2

Related Questions