what control is the one for the message body in Outlook?

B

Bingo

What control is the one for the message body on the
Outlook form? How can I use the same control in VB6?
Thanks.
 
B

Bingo

Sue,

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.
 
S

Sue Mosher [MVP-Outlook]

You mean an attached message? I know of no way to display that anywhere but
in an Outlook item.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Bingo

Sue,

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.
 
S

Sue Mosher [MVP-Outlook]

CDO has no UI, other than a handful of dialogs.

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
 
B

Bingo

Sue and Tom,

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.

Ask a Question

Top