470,566 Members | 1,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,566 developers. It's quick & easy.

reading users exchange 2000 calendar with vb.net?

I am looking for code resources on how to read ms exchange calendar with vb.net. Can anyone point me in the right direction to some code samples
thx
Nov 22 '05 #1
6 4034
Cor
Hi Dave,

This links I got from Jay. B. Harlow, I think it is a good start looking.

http://www.microeye.com/resources/res_outlookvsnet.htm

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...figuration.asp

http://msdn.microsoft.com/library/de...vr_cdo_top.asp
The four CDOs are (in chronological order):

- CDO.DLL : CDO version 1.2.1
- CDONTS.DLL : CDO version 1.2.1 for Windows NT Server (not the same as CDO
version 1.2.1!)
- CDOSYS.DLL : CDO for Windows 2000
- CDOEX.DLL : CDO for Exchange 2000 Server
I hope this helps a little bit?

Cor
I am looking for code resources on how to read ms exchange calendar with vb.net. Can anyone point me in the right direction to some code samples? thx

Nov 22 '05 #2
Hi,

Thanks for posting in the community.

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to get the user's
calendar.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

I think you may try to use the Outlook Object Modal to restrieve the
calendar.

<code snippet>
Dim o As Outlook.Application
o = New Outlook.Application
Dim calenFolder As Outlook.MAPIFolder
calenFolder =
o.GetNamespace("MAPI").GetDefaultFolder(Outlook.Ol DefaultFolders.olFolderCal
endar)
Dim cItem As Outlook.AppointmentItem
For Each cItem In calenFolder.Items
Console.WriteLine(cItem.Subject)
Next
<code snippet>

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 22 '05 #3
Thank you Cor for your links

Peter, the code that you provided is using the Outlook client. How do I read the appointments of other individuals? (my goal is to setup something that reads employee appointments

How can I perform the same thing direct to exchange (withouth the Outlook client)? I have been looking for something for quite a long time (1 or 2 years) and have yet to find anything. If you could provide this, you would help a number of individuals
Thank you.
Nov 22 '05 #4
Hi

In addition to the Outlook Object Modal, you may also try to use the
Collaboration Data Objects(cdo.dll) 1.21 to achieve your aim.

Form the link below, you will know where the cdo.sys will be found.
http://support.microsoft.com/default...ileversion/dll
info.asp&SD=MSDN&FR=0
Here is an KB article about how to access an Exchange Folder using CDO 1.21
HOWTO: Add A Delegate To An Exchange Folder with the ACL Component and CDO
(1.21)
http://support.microsoft.com/default...b;en-us;295558

Here is some code snippet.
Dim oSession As MAPI.Session ' Session object
Dim oCalendar As MAPI.Folder ' Folder object

Set oSession = CreateObject("MAPI.Session")
oSession.Logon "Default Outlook Profile", , False
Set oCalendar = oSession.GetDefaultFolder(CdoDefaultFolderCalendar )
Dim msg As MAPI.AppointmentItem
Set msg = oCalendar.Messages(1)

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 22 '05 #5
Hi Dave,

I am sorry if I did not understanding the problem correctly.
I am not familar with WebDav. But here are some links which may help you
,you may take a look.

Managing Microsoft Exchange 2000 Calendars with XML Web Services
http://msdn.microsoft.com/library/de...us/dnmes2k/htm
l/calwp_0001.asp
Search for the "Find Appointment" section in the link above.

HOWTO: List Public Folders by Using WebDAV
http://support.microsoft.com/default...b;en-us;291171

In VB.NET you can send the request using HttpWebRequest and
NetworkCredential to send the usename and password.

For detailed information about WebDav I think you had better to post in the
newsgroup below there will be many WebDav exports there.

microsoft.public.exchange2000.development

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 22 '05 #6
Hi Dave,

I am sorry if I did not understanding the problem correctly.
I am not familar with WebDav. But here are some links which may help you
,you may take a look.

Managing Microsoft Exchange 2000 Calendars with XML Web Services
http://msdn.microsoft.com/library/de...us/dnmes2k/htm
l/calwp_0001.asp
Search for the "Find Appointment" section in the link above.

HOWTO: List Public Folders by Using WebDAV
http://support.microsoft.com/default...b;en-us;291171

In VB.NET you can send the request using HttpWebRequest and
NetworkCredential to send the usename and password.

For detailed information about WebDav I think you had better to post in the
newsgroup below there will be many WebDav exports there.

microsoft.public.exchange2000.development

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 22 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Arran Pearce | last post: by
1 post views Thread by Kjell Wilhelmsen | last post: by
3 posts views Thread by Curt_C [MVP] | last post: by
reply views Thread by arjen1984 | last post: by
2 posts views Thread by =?Utf-8?B?RU1jQ2FydGh5?= | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.