473,385 Members | 1,732 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,385 software developers and data experts.

Create Contact using CDO\MAPI

I am trying to create a contact using CDO 1.21. I was wondering if anyone
had any sample code of how they may have done this. I am having trouble
findinf documentation on how this is done. I would like to avoid useing
outlook if possible and write directly to the exchange server if possible.

Thanks
Jerry.
Nov 22 '05 #1
4 5336
Jerry,
Are you looking for CDO examples in general on creating a Contact, or a
C#/VB.NET specific sample on creating a Contact?

IMHO the "preferred" way to create a Contact is with Outlook, as all the
"business logic" is contained within the OOM (Outlook Object Model). You
could use CDO to create the contact however there is a good chance you will
"miss" something...

I believe most if not all of the CDO fields that a Contact item requires is
documented at http://www.cdolive.com however I'm not seeing a specific
example right now.

For info on using CDO or Outlook with VS.NET see:
http://www.microeye.com/resources/res_outlookvsnet.htm

Hope this helps
Jay

"Jerry" <JerryatCheesymouse.com> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
I am trying to create a contact using CDO 1.21. I was wondering if anyone
had any sample code of how they may have done this. I am having trouble
findinf documentation on how this is done. I would like to avoid useing
outlook if possible and write directly to the exchange server if possible.

Thanks
Jerry.

Nov 22 '05 #2
Cor
Hi Jay B,

Or it was very late for you or I can learn again something from you.

What has contacts to do with CDO?

(Other than that it can be one of the suppliers of the email adres etc)

Cor
Nov 22 '05 #3
Cor,
Yes it was later then normal for me. ;-)
What has contacts to do with CDO? Both CDO 1.2.1 & the Outlook Object Model are based on Extended MAPI.
Extended MAPI is used to manipulate PSTs & Exchange Server folders. PSTs &
Exchange Server folders are property based data stores. Outlook (not Outlook
Express) uses these property based data stores to store & retrieve its mail,
calendar, contacts, tasks and other items. Seeing as CDO is allowed to
manipulate the same data, it can be used to read & write contacts.

Extended MAPI is a COM interface that is not Automation friendly...

Hope this helps
Jay

"Cor" <no*@non.com> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl... Hi Jay B,

Or it was very late for you or I can learn again something from you.

What has contacts to do with CDO?

(Other than that it can be one of the suppliers of the email adres etc)

Cor

Nov 22 '05 #4
Cor
Hi Jay B,

I was always sure that CDO was only for smtp mail and the folders where
Mapi. So thanks.

You can say, why did you not look it up yourself, but I saw how late it was
with you yesterday .

Although I had a before a short look of course in the links you did send me
and did not see it.

Thanks,

:-))

Cor

Yes it was later then normal for me. ;-)
What has contacts to do with CDO? Both CDO 1.2.1 & the Outlook Object Model are based on Extended MAPI.
Extended MAPI is used to manipulate PSTs & Exchange Server folders. PSTs &
Exchange Server folders are property based data stores. Outlook (not

Outlook Express) uses these property based data stores to store & retrieve its mail, calendar, contacts, tasks and other items. Seeing as CDO is allowed to
manipulate the same data, it can be used to read & write contacts.
Extended MAPI is a COM interface that is not Automation friendly...

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jerry | last post by:
I am trying to create a contact using CDO 1.21. I was wondering if anyone had any sample code of how they may have done this. I am having trouble findinf documentation on how this is done. I...
3
by: scott | last post by:
Anyone have a link to syntax that could create an outlook vcard file format? all examples i find are for doing it inside outlook with .net. i'm just looking for an ASP solution.
0
by: Manuel Krummenacher | last post by:
Hello! I'm trying to develop an application to manage email-forwardings on an Exchange 2000 Server. Forwardings to external Addresses are requiring a contact with an Exchange account. I can...
0
by: Patrick | last post by:
I'm working on a contact management application, and need a hand with one aspect... Here's what I want to create: ------------------------------------ A form split into two parts. There is a...
0
by: Qajussi | last post by:
Hi! I am trying to create data entry forms like MS access forms using asp.net. I am talking about a form like MS access forms which let you enter a new record, edit, navigate to previous and next...
1
by: shapper | last post by:
Hello, I have a profile with multiple profile properties in my Web.Config: <add allowAnonymous="false" name="Contact" type="Contact" serializeAs="Binary"/> <add allowAnonymous="false"...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
1
by: Syoam4ka | last post by:
Hi, I'm using c# and asp.net In my website, I have tab in my tabcontainer for example - contacts. There it shows me a listbox/something like that, which shows my contacts - online and offline...
3
by: DdigitalD | last post by:
I'm creating a Flash site for a client and they want a "LOG IN" page with in the Flash site. Users to this site must enter their contact info before they can enter the site. My client's main...
5
by: krasman | last post by:
hi everyone, i hope you might help me on this one. i need to create a contact in a exchange public folder using dotnet (vb or c#) and exchange 2003, without using outlook object model. i'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.