Solved

how can I create/manage Outlook Tasks using ASP.NET Web Forms

Posted on 2010-09-24
4
898 Views
Last Modified: 2012-05-10
how can I create/manage Outlook Tasks using ASP.NET Web Forms on an XP Pro
machine setup with IIS 5.1 and with Outlook 2007 installed on the same 'server'
machine?

Are there some code samples available illustrating the coding techniques?

We are developing an ASP.NET web app on a LAN using an XP Pro machine as a server with IIS 5.1 installed. The requirements are to provide a SCHEDULER for digital lighting tasks (turn lights off/on/ to scenes, etc.) So, naturally, I am looking at using Outlook 2007 on the same machine, and integrating it with ASP.NET.

VB.NET is preferred, but C# will suffice too.
0
Comment
Question by:Michael-David
  • 2
  • 2
4 Comments
 

Author Comment

by:Michael-David
ID: 33757465
We are developing an ASP.NET web app on a LAN using an XP Pro machine as a server with IIS 5.1 installed. The requirements are to provide a SCHEDULER for digital lighting tasks (turn lights off/on/ to scenes, etc.) So, naturally, I am looking at using Outlook 2007 on the same machine, and integrating it with ASP.NET.

VB.NET is preferred, but C# will suffice too.
0
 
LVL 23

Accepted Solution

by:
Rajkumar Gs earned 500 total points
ID: 33759572
I am working on Visual Studio 2008 / VB.Net

Creating New Tasks in Outlook
-------------------------------------
1. Add Reference to 'Microsoft.Office.Interop.Outlook' (See screenshot)
2. Use this VB code snipplet to create new task in Outlook

Try this
Raj
' Create Outlook Application object

Dim outLookApp As New Application()

' Create new task.

Dim newTask As TaskItem = DirectCast(outLookApp.CreateItem(OlItemType.olTaskItem), TaskItem)

' Set the properties of the task

newTask.Body = "Send an email to Boss today itself!"

newTask.DueDate = DateTime.Now

newTask.Importance = OlImportance.olImportanceHigh

newTask.Subject = "Email Boss"

newTask.Save()

Open in new window

Microsoft.Office.Interop.Outlook.jpg
0
 

Author Closing Comment

by:Michael-David
ID: 33760468
Wasn't sure of the development (IDE) context used (Outlook, ASP.NET?)
0
 
LVL 23

Expert Comment

by:Rajkumar Gs
ID: 33760686
I tested my code in ASP.Net 3.5 and worked fine. Created task appeared in Outlook.

Nice to see you have got the solution :-) Thanks for the points.

Regards
Raj
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Outlook Free & Paid Tools
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

760 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

23 Experts available now in Live!

Get 1:1 Help Now