Thanks, Dmitry. That was a helpful clue that I could use for something
else. However, it seems that my problem is to display some HTML I have
in a string, obtained from some URL, into a web browser embedded into
Outlook itself.
Can you please give me some pointers to doing this task? Thanks.
Which web browser? I don't think you can access the folder home page IE
objects from outside of that page. And thee preview panee displays thee
contents of the ecurrently selected item. The only way to display something
in the preview pane is to modify the selected item and set its HTMLBody
property.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> Thanks, Dmitry. That was a helpful clue that I could use for something
> else. However, it seems that my problem is to display some HTML I have
> in a string, obtained from some URL, into a web browser embedded into
> Outlook itself.
>
> Can you please give me some pointers to doing this task? Thanks.
Water Cooler v2 - 20 Sep 2005 20:01 GMT
OK. Let me start all over again. From a user's stand-point, this is
what needs to be achieved.
"When the user clicks one of the buttons on the toolbar of Outlook, he
must be shown a web page open up inside of Outlook itself."
>From a programmer's stand-point, this is what needs to be done:
(1) I get a string that contains some HTML code.
(2) I need to display properly formatted HTML inside of Outlook itself.
(3) The HTML must be properly formatted so that the user gets to see
not the HTML code but the formatted content.
(4) The window in which this HTML is displayed must be maximized and it
must be within Outlook itself.
Thanks.
Dmitry Streblechenko - 20 Sep 2005 22:15 GMT
Create an HTML file in a temporary folder, copy the HTML string there, set
the MAPIFolder.WebViewURL and WebViewOn properties appropriately (where
MAPIFolder is Explorer.CurrentFolder). Outlook will display the HTML instead
of the message list. Whenever that HTML window needs to be closed
(Explorer.FolderSwitch event?), reset the WebViewURL and WebViewOn
properties and delete the temporary HTML file.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> OK. Let me start all over again. From a user's stand-point, this is
> what needs to be achieved.
[quoted text clipped - 12 lines]
>
> Thanks.