?
Solved

Insert directly into Outlook Calendar via .NET?

Posted on 2008-10-01
4
Medium Priority
?
520 Views
Last Modified: 2013-11-26
Hi,

I've got a project which requires me to directly insert an calender item directly into the users outlook calender using .NET.

I've done some research and can see the only way would be webdav...


Does anyone have any recommendations or best ways of doing this? A simular example would be great!

Unfortunately, it has to insert the item via exchange and not the users outlook client.

Thank you,

Nick
0
Comment
Question by:nickrawlins
  • 2
2 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 22612959
Adding Calendar Items to Outlook or Other Calendar App from a Webpage via iCalendar
http://ryanfarley.com/blog/archive/2008/08/08/adding-calendar-items-from-a-webpage-via-icalendar.aspx
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 22612961
You can try this code

(source: http://www.daniweb.com/forums/thread31968.html)
Dim objOutlook As Outlook.Application
objOutlook = New Outlook.Application()
Dim objNS As Outlook.NameSpace = objOutlook.Session
 
'---------Write to Shared calendar-----------------
Dim objFolder As Outlook.MAPIFolder = objNS.Folders.Item("Public Folders")
objFolder = objFolder.Folders.Item("All Public Folders")
objFolder = objFolder.Folders.Item("Boss Calendar")
 
 
 
'=========Add appointment to calendar=================
Dim objApp As Outlook.AppointmentItem
objApp = objFolder.Items(Outlook.OlItemType.olAppointmentItem) 
 
With objApp
.Subject = (" Test appointment")
.Location = "Main Office"
.Body = ("test appointment")
.Start = ("1:30pm 11/21/2007")
.Save()
End With

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question