Inserting images that keep the path for html

3 posts, 1 answers
  1. Philip
    Philip avatar
    17 posts
    Member since:
    Feb 2014

    Posted 30 Mar 2014 Link to this post


    I would like to use the RadRichTextBox as my html editor for sending e-mails (I have already written an Outlook Integration). Right now I use an html editor, but it doesn't have spell check.

    My problem is that the html generated from the RadRichTextBox embeds the images in the HTML instead of letting me convert them (using the local path) into MIME attachments when sending e-mail.

    Is there a way to insert an image and not have it embedded, but keep the path in the img tag instead?

    Thanks in advance,

    Philip Carter

  2. Answer
    Dimitar avatar
    2818 posts

    Posted 02 Apr 2014 Link to this post

    Hi Philip,

    Thank you for contacting us.

    The export mode of the image is controlled by the ImageExportMode property. For example you can set this property along with the export settings like this: 
    HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
    HtmlExportSettings settings = new HtmlExportSettings();
    settings.ImageExportMode = Telerik.WinControls.RichTextBox.FormatProviders.Html.ImageExportMode.UriSource;
    htmlProvider.ExportSettings = settings;

    More information about this is available in the following article: Import/Export Settings.

    Please let me know if there is something else I can help you with. 


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Philip
    Philip avatar
    17 posts
    Member since:
    Feb 2014

    Posted 02 Apr 2014 in reply to Dimitar Link to this post

    Thank you so much. I really appreciate your help.
Back to Top