473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 4154
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: dave | last post by:
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
2
by: M Rao | last post by:
I have xml data coming in as a stream from a web service running against exchange server.The attributes for the elements dtstart and dtend, b:dt="dateTime.tz"...
1
by: Arran Pearce | last post by:
I am wanting to create a web application which will use Microsoft Exchange Server. We currently use Exchange 2000 but if i needed it we would upgrade to 2003. Is 2003 going to provide easyer...
1
by: Kjell Wilhelmsen | last post by:
Hi ... I'm working on a program that's importing/exporting data between our Intranet and our ActiveDirectory and Exchange server. Does anybody out there know how to create a meeting in a users...
0
by: Jayme | last post by:
My company would like to implement an online calendar that integrates with our current website that would allow our clients to view upcoming workshops and events. These "appointments" are...
2
by: Rolf Barbakken | last post by:
We have a need for showing the calendar belonging to a resource in Exchange 2000 (soon 2003). Anyone have a any pointers to information on how this could be done? Thanks. --...
3
by: maria.s | last post by:
Hi, I try to create a calender-item in the personal calendar folder from an ASP.NET application using XML-HTTP Request (WebDAV). System: Windows 2003 SP1, Exchange 2003 SP1 Configuration...
3
by: Curt_C [MVP] | last post by:
Hey all, I can't seem to find a good link to reading an Exchange (2000) calendar with ASP.NET 1.1 Anyone got a good pointer/starter/link? Thanks -- Curt Christianson site:...
0
by: arjen1984 | last post by:
I am now working on C# with WebDAV on Exchange now to get appointments. When I work local on the domain where the server is, i can get the appointments no problem. When I work outside of it, i get an...
2
by: =?Utf-8?B?RU1jQ2FydGh5?= | last post by:
My organization currently has interfaces in place to generate MS Outlook emails from our business applications. I am trying to determine if it is possible and how difficult it might be to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.