Click here to Skip to main content
16,019,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I would like to extract images from a RichTextBox and save them to file. Can any body help me out? Any help / suggestions will be appreciated.

Thanks in advance,
Croody
Posted

http://msdn.microsoft.com/en-us/library/aa335488(VS.71).aspx

hey croody check this link.
What it does is that it takes the contents of your richtextbox and reads it as a stream. And that stream will be used to store in some location using a SaveDialogBox ! Hope it helps! :)
 
Share this answer
 
v3
Hi Tarun.K.S,

Thank you for the suggestion but what I actually want to do is to copy or extract just the images and not everything in the RichTextBox.

Croody
 
Share this answer
 
NRTFTree - A class library for RTF processing in C#[^]

This library should have everything you need, you can find a set of examples here:

http://nrtftree.sourceforge.net/examples.html[^]

Specifically the image node example does exactly what your looking for.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900