Solved

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

Posted on 2010-09-24
4
907 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

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

Find out what you should include to make the best professional email signature for your organization.
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
This video teaches users how to migrate an existing Wordpress website to a new domain.
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

770 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