Outlook tasks

来源:http://www.imcoder.org/enterprise-service/190579.htm

 

 

Q:I am not a newbie to asp.net, but I am new to the integration to outlook. I have an app that creates jobs for computer technitians to complete (go and fix a clients computer, install network cards, etc...) so there are alot of jobs for a technitian to complete in one day.

I would like to be able to create a task in outlook upon the click of a button in the app. I have researched a bit on it and I can really find anything that will help me.

this link:
http://www.codeproject.com/csharp/SendTasksPgmticly.asp

is the best one I have found, but im getting errors, "CDO not accessible" so I dont know whats going on there...

Any ideas or code samples will be greatly appreciated.

Kram
A:Ok, so after a bit of research I have found that I am going to use the WebDAV and HttpRequest classes to publish the request to an exchange server.

Its bascially setting up some XML to pass to the exchange server.Then set up a NetworkCredential class.

After the setup of the HttpRequest object is done, I run the .GetRequest() method. Then I get the error:

Invalid URI: The format of the URI could not be determined

Any Ideas?
A:Ok i solved it, the issue was with my proxy, I had to add valid proxy credentials to the httpwebrequest!

Ok,for all you youngesters, he's a tip: LOOK AT THE INNER EXCEPTION! manthat would have made my life easier if I had read it earlier.

here is how to add a proxy credential:

WebProxy proxy = new WebProxy(System.Configuration.ConfigurationSettings.AppSettings["Proxy"]);
proxy.Credentials = new NetworkCredential("username", "password", "domain");
PROPPATCHRequest.Proxy = proxy;

where PROPPATCHRequest is my instance of the HttpWebRequest class,

and

System.Configuration.ConfigurationSettings.AppSettings["Proxy"]is a app setting in my web.config file (this can be replaced with anyold string of a proxy server, i.e. http://192.168.0.1:8080)
A:I know that I seem to be the only one on this thread. But I wondering if someone could help me understand the webdav side of what I've done.
I need someone to point me in the direction of the documentation behind submitting a http request to exchange in order to get my deisred appointment in outlook. Like I said, I got it working, but Im not really sure about what it is im doing.

Any help would be apprecitated

(I.e. a link to the syntax of the webdav stuff, examples, some sort of API of the xml behind the calendar features of exchange)

Cheers
A:

hi kram,

I appreciate your effort for publishing the solution and following the thread...:). Here I have a case with outlook.

I am developing a ASP.Net application where mails have to be send to users. The E-Mail address of the user should be accessed from the microsoft outlook global address book.

Is there any .Net classes, which shall perform this fuunctionality. I feel the Microsoft Exchange server has to be contacted for this and access the public folder where, the address will be stored.

How to access it?

Thanks in advance

A:There are certainly ways to do this, just off a bit of reearch there is a page that has exactly what you want.

http://www.metaprosystems.com/NetTipsTricks.aspx

scroll down to the section:

MetaPro Systems Inc. Visual Studio Dot Net Tips & Tricks #3 - Direct Access to
Your Outlook Address Book

This should get you on your way. I should also tell you of the reference that you can add to your project to make outlook classes available to you. its a COM reference called "Microsoft Outlook 11.0 Object Library"


A:

Thank You !

We are yet to start our application. I hope it will work well.

Well what about the issue you had. As per your thread, were you able to find the activities behind the scene.

posted @ 2008-08-06 10:58  KK in cnblog  阅读(450)  评论(0编辑  收藏  举报