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

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

2 Answers 144 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Tayllor
Top achievements
Rank 2
Tayllor asked on 13 Feb 2013, 11:29 PM
Hello,

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?

-Tayllor

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex
Telerik team
answered on 18 Feb 2013, 03:57 PM
Hi,

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,
Alex
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tayllor
Top achievements
Rank 2
answered on 18 Feb 2013, 09:37 PM
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,
Tayllor
Tags
RichTextBox
Asked by
Tayllor
Top achievements
Rank 2
Answers by
Alex
Telerik team
Tayllor
Top achievements
Rank 2
Share this question
or