Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2010-09-24
4
Medium Priority
?
950 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

636 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