• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 958
  • Last Modified:

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

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
Michael-David
Asked:
Michael-David
  • 2
  • 2
1 Solution
 
Michael-DavidAuthor Commented:
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
 
Rajkumar GsSoftware EngineerCommented:
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
 
Michael-DavidAuthor Commented:
Wasn't sure of the development (IDE) context used (Outlook, ASP.NET?)
0
 
Rajkumar GsSoftware EngineerCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now