Asked by:
Accessing Outlook from an ASP.Net page

Question
-
User1195626876 posted
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>
Thursday, June 18, 2009 3:11 PM
All replies
-
User-987844210 posted
Hello,
I am trying to access outlook 2007, shared calendar folder.
If you know how can we do it please suggest, we badly need your advice.
Tuesday, June 30, 2009 3:09 AM -
User-1151189477 posted
Hi!
Try creating object of Microsoft.Office.Interop.Outlook.Application type. U can access all outlook entries with this object.
Tuesday, June 30, 2009 3:21 AM -
User-987844210 posted
Hello,
I am trying to access outlook 2007, shared calendar folder.
If you know how can we do it please suggest, we badly need your advice.
Tuesday, June 30, 2009 4:21 AM -
User-1151189477 posted
Hi!
Visit following link.
http://msdn.microsoft.com/en-us/library/ms268893(VS.80).aspx
Hope it may help.
Wednesday, July 1, 2009 7:49 AM -
User1195626876 posted
Hello,
I am trying to access outlook 2007, shared calendar folder.
If you know how can we do it please suggest, we badly need your advice.
Why did you hijack my thread? Please start a seperate thread for you question.
Thursday, July 2, 2009 8:57 AM -
User-987844210 posted
Hello hschutte,
my apologies will never do it again :).
Tuesday, August 4, 2009 4:41 AM -
User-433101074 posted
I am trying to do something similar to your post...did you ever get an answer? I am trying to read emails in my local outlook file and import selected items into my web site. so it has to be run with a web page.
thanks,
mark
Tuesday, September 8, 2009 4:03 PM