Adding Appointment to a user's calendar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to write a VB.Net program that adds appointments and or tasks to a
user's calendar or task list. I see through different examples how to do
this but, it sends this appointment/task as an email request. Once this
email is delivered, the user has to accept or decline it. Say for example, I
want to programatically add an appointment to John Doe's calendar. Is there
a way to do that with out John's interaction so that when he opens Outlook,
it is there?

Thanks,
David Lindsey
 
If you are working in an Exchange organization and have Write access to the
other person's calendar folder, you can use the
Namespace.GetSharedDefaultFolder method to return the MAPIFolder object,
then create a new item in it by using the Add method on its Items
collection. See http://www.outlookcode.com/codedetail.aspx?id=405 for a code
sample.
 
Outlook 2003. Did you download the PIAs for Outlook 2002?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
No I didn't. Is that the missing link here? I guess I can go to the
downloads and get that?
 
You certainly should be using the MS PIAs, not the ones that VB.NET builds
from the Outlook files. I think I have a link at
http://www.outlookcode.com/d/index.htm#dotnet

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
No clue. .NET is still a jungle for me. Did you change the project reference
for Outlook to point to the downloaded PIA?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top