What can I do to display the embedded messages? VB RichTextbox control
works fine with RTF and HTML formatted messages but not the embedded ones.
Thanks.
What I need to do is to mimic the preview window in Outlook. If an email
has an embedded picture, it will be showing in the preview window.
Attachments are not. In my VB app, I currently have a RichTextbox control
to display message body. It works fine with formatted messages in HTML and
RTF but not embedded pictures, word documents, etc.
You mentioned that CDO does support RTF and HTML. How does CDO handle
embedded objects? Thanks.
Embedded pictures in an HTML message should work fine in a browser control.
I wonder if someone in a Word forum would have some ideas for you.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
CDO actually can save the OLE objects embedded in the
message body to the disk. RickTextbox control then can
load the OLE objects and display them correctly. I've
tested with Word and Excel OLE objects and both are
working fine. Thanks for pointing the right direction.
Really appreciate it.
The problem left now is the pictures inserted directly
into the message body. CDO recognizes this type of
objects as OLE as well. And I can save the objects to
disk. But I cannot open the file directly or in
RickTypebox. It's always an unknow format. I
tried .Gif, .Bmp, no file extention. No luck at all.
Since I don't know if it's possible for CDO to tell if
the embedded OLE object is a Word/Excel or picture, how
do I display the picture files inserted directly in the
message body? Thanks again.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.