I need to display outlook emails on an ASP.Net web page and determine which item is currently selected (to determine the subject and contents of the email). I'm using the OutlookViewCtl control which works very nicely in displaying the items but I can't find any way of determining which item is currently selected. Using the Selection property of the control gives a Permission Denied error.
Is there anyway to do this from an ASP.Net page?
I'm using the following code to create the object:
<OBJECT id=ViewCtlFolder codeBase=http://activex.microsoft.com/activex/controls/office/outlctlx.CAB#ver=9,0,0,3203 height=430 width="100%" classid=CLSID:0006F063-0000-0000-C000-000000000046>
<PARAM NAME="Namespace" VALUE="MAPI">
<PARAM NAME="Folder" VALUE="Calendar">
<PARAM NAME="View" VALUE="Day/Week/Month View With AutoPreview">
<PARAM NAME="Restriction" VALUE="">
<PARAM NAME="DeferUpdate" VALUE="0">
</OBJECT>