By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

Looping through Outlook Contact Address list

P: n/a
Hi,
I am new to C# and It may be a simple question.

I am trying to loop through MS-Outlook object Contact address list. I can
able to find the count using following line.

int iAddresscount =
((Outlook.Application)application).GetNamespace("M API").AddressLists.Count;

but I want to loop through each contacts and display in the messagebox. How
to do that? Appreciate your help.

Thanks

--
kannan
Oct 3 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
May i ask why you want to do this?
"kannan" <ka****@discussions.microsoft.comwrote in message
news:2C**********************************@microsof t.com...
Hi,
I am new to C# and It may be a simple question.

I am trying to loop through MS-Outlook object Contact address list. I can
able to find the count using following line.

int iAddresscount =
((Outlook.Application)application).GetNamespace("M API").AddressLists.Count;

but I want to loop through each contacts and display in the messagebox.
How
to do that? Appreciate your help.

Thanks

--
kannan

Oct 3 '06 #2

P: n/a
Hi Daniel,
I have a requirement to develop Add-in outlook component that will retrieve
all the address list from outlook and pass on to my application database.

Thanks,

--
kannan
"Daniel" wrote:
May i ask why you want to do this?
"kannan" <ka****@discussions.microsoft.comwrote in message
news:2C**********************************@microsof t.com...
Hi,
I am new to C# and It may be a simple question.

I am trying to loop through MS-Outlook object Contact address list. I can
able to find the count using following line.

int iAddresscount =
((Outlook.Application)application).GetNamespace("M API").AddressLists.Count;

but I want to loop through each contacts and display in the messagebox.
How
to do that? Appreciate your help.

Thanks

--
kannan


Oct 3 '06 #3

P: n/a
umm sorry i wont help out of principle. Sounds too much like your app is
spamming software. Sorry.
"kannan" <ka****@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
Hi Daniel,
I have a requirement to develop Add-in outlook component that will
retrieve
all the address list from outlook and pass on to my application database.

Thanks,

--
kannan
"Daniel" wrote:
>May i ask why you want to do this?
"kannan" <ka****@discussions.microsoft.comwrote in message
news:2C**********************************@microso ft.com...
Hi,
I am new to C# and It may be a simple question.

I am trying to loop through MS-Outlook object Contact address list. I
can
able to find the count using following line.

int iAddresscount =
((Outlook.Application)application).GetNamespace("M API").AddressLists.Count;

but I want to loop through each contacts and display in the messagebox.
How
to do that? Appreciate your help.

Thanks

--
kannan



Oct 3 '06 #4

P: n/a
hi
We have application which will use my outlook address to communicate users.
We have table in my database, which will be refreshed from outlook address.
so that it will keep updated information. Appreciate your help....

thanks,

--
kannan
"Daniel" wrote:
umm sorry i wont help out of principle. Sounds too much like your app is
spamming software. Sorry.
"kannan" <ka****@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
Hi Daniel,
I have a requirement to develop Add-in outlook component that will
retrieve
all the address list from outlook and pass on to my application database.

Thanks,

--
kannan
"Daniel" wrote:
May i ask why you want to do this?
"kannan" <ka****@discussions.microsoft.comwrote in message
news:2C**********************************@microsof t.com...
Hi,
I am new to C# and It may be a simple question.

I am trying to loop through MS-Outlook object Contact address list. I
can
able to find the count using following line.

int iAddresscount =
((Outlook.Application)application).GetNamespace("M API").AddressLists.Count;

but I want to loop through each contacts and display in the messagebox.
How
to do that? Appreciate your help.

Thanks

--
kannan


Oct 3 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.