Solved

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

Posted on 2010-09-24
4
926 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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 …

717 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