HtmlFormatProvider and image in RichTextBox

2 posts, 0 answers
  1. Lee
    Lee avatar
    2 posts
    Member since:
    Jun 2010

    Posted 27 Aug 2013 Link to this post


    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?
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 30 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top