This is a migrated thread and some comments may be shown as answers.

HtmlFormatProvider and image in RichTextBox

1 Answer 117 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 28 Aug 2013, 04:39 AM

Recently, I have found an issue with RichTextBox. I create a RadDocument with an inserted image on it and then convert in into html using Telerik.Windows.Documents.FormatProviders.Html.HtmlFormatProvider. I can see the image if I open the file with any browser. However, if I email that html document as a body of email then my gmail doesn't show it as image. It shows it as text like <image and etc>. I believe it happens because of security issues. Has anybody ever had the same problem? Maybe there are some settings for gmail to show the image?

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 30 Aug 2013, 03:13 PM
Hi Lee,

RadRichTextBox's HtmlFormatProvider embeds images when exporting them. Many e-mail clients, however, restrict the showing of embedded images for security purposes. 

In this regard we can suggest to export the images separately and attach them to the e-mail, for example. In order to export the images separately you can take advantage of HtmlFormatProvider's ExportSettings and more precisely the ImageExporting event.

I hope this helps!

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
Lee
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or