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.

转载于:https://www.cnblogs.com/kangshifu/archive/2008/08/06/1261758.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值