Outlook View Control embedded in custom control

T

tanutatu

Hi,

I am using VSTO 2005, Outlook 2003, c#.
I created a windows user control using c#.I used the outlook view
control inside this user control.
Then i embedded this user control(contaning the OVC) in an html page on
my hard disk.
I then set this html page as a home page to one of my outlook folders.
It displays the page correctly, along with OVC and list of messages
inside it.
But, when i click on any message in the OVC, it does not display the
reading(preview) pane.Also, all the options of View->Reading Pane in
the menu bar are disabled whenever this page is set as home page !
Please can you throw some light on this issue?

Another thing i noticed is when i embed the OVC as it is in the web
page, it does display the reading pane(preview) pane.

Why this different behaviour?

Thanks

Regards
Tanushree
 
W

Woody W (MVP)

The OVC has some strange behavior when it does not run directly in the
context of Outlook. This is by design and due to security
considerations. You will find that certain elements of the Outlook
object model are not available through the control unless the OVC is run
directly - particularly enumeration of folders and message stores.
 

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