Solved

Insert directly into Outlook Calendar via .NET?

Posted on 2008-10-01
4
499 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
4 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 125 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VS.net 2010 11 32
VB.NET 2008 Populate DataModel with DataTable 44 28
SqlDependency to get update from sql to my c# app 2 37
How to open form using item in Listbox. 8 20
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now