473,651 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4168
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.Applica tion
o = New Outlook.Applica tion
Dim calenFolder As Outlook.MAPIFol der
calenFolder =
o.GetNamespace( "MAPI").GetDefa ultFolder(Outlo ok.OlDefaultFol ders.olFolderCa l
endar)
Dim cItem As Outlook.Appoint mentItem
For Each cItem In calenFolder.Ite ms
Console.WriteLi ne(cItem.Subjec t)
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=MSD N&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("M API.Session")
oSession.Logon "Default Outlook Profile", , False
Set oCalendar = oSession.GetDef aultFolder(CdoD efaultFolderCal endar)
Dim msg As MAPI.Appointmen tItem
Set msg = oCalendar.Messa ges(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
NetworkCredenti al 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.publi c.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
NetworkCredenti al 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.publi c.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
953
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
4188
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" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/, are causing trouble. I tried to create schema using xmlspy and I get an error saying name "b:dt" cannot have a namespace prefix. I am new to xml. Can somebody please help with schema. <appointments> <appointment>
1
3555
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 programming with C# (and DotNet in general) than 2000? If so i will wait a bit longer. thanks for any insights. Arran
1
4271
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 Exchange calendar. We're running Exchange server 2003, but if there is a solution that also works on older versions of Exchange that would wonderful.
0
1386
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 currently entered by the event coordinators into a public calendar on our Exchange 2000 server. Our Exchange 2000 server and our Internet server exist on two different machines and a solution cannot consist of a "server" program that resides on the...
2
1292
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
4007
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 IIS: Default Web Site stopped, OWA running on a second virtual site, my application is running on a third virtual site.
3
2076
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: http://www.darkfalz.com
0
3394
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 SecurityException. This is my code to get the appointments: protected void getAfspraken() { NetworkCredential credential = new NetworkCredential("bhees","1234567", "oaicttest"); WebdavSession session = new...
2
3045
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 interface with MS Ecxhange or Outlook from a business application and add items to a user's calendar, task list, or at a minimum to set a follow up flag in an email. We are running Exchange 2003 and a variety of MS Outlook 2000 and 2003. We do have...
0
8275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8802
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8697
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.