Thanks for your reply I have done..
private void _items_ItemAdd(object Item)
{
try
{
Microsoft.Office.Interop.Outlook._AppointmentItem
objAppointmentItem = (Microsoft.Office.Interop.Outlook._AppointmentItem )Item;
here I access,
- objAppointmentItem.Body
- objAppointmentItem.Subject etc
}
}
so here when I get in to objAppointmentItem I get security alert. Even I
tried taking object at class level.
What should I do?
Thanks.
"Sue Mosher [MVP-Outlook]" wrote:
Sounds like you are not constructing your add-in correctly so that it derives
all Outlook objects from the Outlook.Application object exposed by the add-in
architecture. The details will depend on whether it's a shared or VSTO
add-in. See http://www.outlookcode.com/article.aspx?ID=52
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Abhi." wrote:
Hello,
In my VS 2005 C#Outlook Add in when in Item_Add event I access Item
information of that Item in order to save this information I am getting,
" A program is trying to access e-mail addressess you have stored in
Outlook.Do you want to allow this?
If this is unexpected, it may be virus and you should choose "No" "