reading users exchange 2000 calendar with vb.net?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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/d...html/frlrfsystemwebmailsmtpmailclasstopic.asp

http://msdn.microsoft.com/library/d.../cdosys/html/_cdosys_schema_configuration.asp

http://msdn.microsoft.com/library/d...y/en-us/exchanchor/htms/msexchsvr_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?
 
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.OlDefaultFolders.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.
 
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.
 
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.aspx?scid=/servicedesks/fileversion/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.aspx?scid=kb;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.
 
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/default.asp?url=/library/en-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.aspx?scid=kb;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.
 
Back
Top