I have a image inside richtextbox in windows form. I want to send that image through mail . I converted the rtf to html , but then the image format is changed to wmf and it is not displaying.
Asked
Active
Viewed 427 times
0
-
how did you convert to html? most browsers won't show wmf, but if it converted to a GIF or PNG and inline, it should work. – Garr Godfrey Jun 02 '15 at 07:26
-
i got the code for converting rtf to html from stackoverflow.com/questions/5265566/simple-convert-rtf-to-html – rahul kadachira Jun 02 '15 at 08:43
1 Answers
0
You can extract the objects (like images i.e) from an rtf. But thats not so easy. So take a look at stackoverflow 14779647 extract-embedded-image-object for an example code. After extracted attach it to your mailmessage.
-
Respected Sir/Madam
– rahul kadachira Jun 02 '15 at 12:08<http://mfabtech.com/images/gallery/a2.jpg>
-
-
do you need that HTML way?? i dont think so - use the approach from my referenced stackoverflow answer plz – Cadburry Jun 02 '15 at 12:15