RtfFormatProvder.Import does not embed images from Outlook Generated RTF text

3 posts, 1 answers
  1. Tayllor
    Tayllor avatar
    13 posts
    Member since:
    Mar 2012

    Posted 13 Feb 2013 Link to this post


    I have a program that uses the RtfFormatProvider.Import method.  This method is not able to extract the images embedded by Outlook rtf emails.

    Steps to Replicate the problem.
    1) Create a new Email in outlook.
    2) Select Rich Text Format
    3) Embed Image
    (My program attempts the following...)
    4) Retrieve RTF Text from email body.
    5) Run RTFText through RtfFormatProvider.Import(string) method.
    6) Display the generated RadDocument in a RadRichTextBox.

    Result: Images are not visible.  Most likely due to the fact that outlook rtf doesn't list them as pictures, but as ole objects.

    Is there any workaround or can this be placed on your todo list?

  2. Answer
    Alex avatar
    130 posts

    Posted 18 Feb 2013 Link to this post


    If the images are embedded in the RTF file as an ole object, the RtfFormatProvider will not be able to recognize and import them. However, to be sure that this is the case, it would be helpful to send us the RTF you are trying to import so that we can examine it.
    I have converted this communication to a support ticket so that you will be able to attach documents.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Tayllor
    Tayllor avatar
    13 posts
    Member since:
    Mar 2012

    Posted 18 Feb 2013 Link to this post

    Hi Alex,

    I just tried single image (snipped screenshots of my desktop).  I won't bother to submit the HTML, since it just contains the one OLE embedded image.  

    Thank you,
Back to Top