Outlook tasks
来源:http://www.imcoder.org/enterprise-service/190579.htm
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
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?
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)
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
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
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"
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.