A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem while converting GAL entries to contacts in Outlook Cont



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 23rd 09, 05:14 AM posted to microsoft.public.outlook.program_vba
converting GAL entries to contacts[_2_]
external usenet poster
 
Posts: 3
Default Problem while converting GAL entries to contacts in Outlook Cont

Hi,

I am retrieving the GAL contcts of outlook using the following code snippet
and converting them into contacts to retrieve the email address of that
particular GAL entry.
Here I am using Outlook 2007 dll.

OutLook.

Application app = new Microsoft.Office.Interop.Outlook. Application ();



AddressEntries addressEntries = app.Session.AddressLists[ "Global Address
List" ].AddressEntries;



for ( int a = 1; a = addressEntries.Count; a++)

{

OutLook.

ContactItem contact = ( ContactItem )addressEntries[a].GetContact();



string email = contact.Email1Address;

}

when I try to convert each address entry of Global Address List(GAL) into a
contact, it is not converting EmailAddreess value of that GAL entry ,instead
it is converting to a null value eventhough email address exists for that GAL
entry.

How to get email address property value when converting a GAL entry into a
contact?
Here I am using outlook 2007 Object Model dll.

So, anyone please help me how can I solve the above requirement through the
sample code snippet.
  #2  
Old July 23rd 09, 01:22 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Problem while converting GAL entries to contacts in Outlook Cont

Try using GetExchangeUser instead of GetContact.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"converting GAL entries to contacts"
oft.com wrote in message
...
Hi,

I am retrieving the GAL contcts of outlook using the following code
snippet
and converting them into contacts to retrieve the email address of that
particular GAL entry.
Here I am using Outlook 2007 dll.

OutLook.

Application app = new Microsoft.Office.Interop.Outlook. Application ();



AddressEntries addressEntries = app.Session.AddressLists[ "Global Address
List" ].AddressEntries;



for ( int a = 1; a = addressEntries.Count; a++)

{

OutLook.

ContactItem contact = ( ContactItem )addressEntries[a].GetContact();



string email = contact.Email1Address;

}

when I try to convert each address entry of Global Address List(GAL) into
a
contact, it is not converting EmailAddreess value of that GAL entry
,instead
it is converting to a null value eventhough email address exists for that
GAL
entry.

How to get email address property value when converting a GAL entry into a
contact?
Here I am using outlook 2007 Object Model dll.

So, anyone please help me how can I solve the above requirement through
the
sample code snippet.



  #3  
Old July 24th 09, 06:03 AM posted to microsoft.public.outlook.program_vba
converting GAL entries to contacts[_2_]
external usenet poster
 
Posts: 3
Default Problem while converting GAL entries to contacts in Outlook C

Hi,

Thanks for the Reply.
I have another doubt.

How can I filter the Global Address List contacts based on my requiremnts?
OutLook.AddressEntries class does not contain a methos like Restrict or Find.
So, How can I filter the Global Address List contacts based on my name?





"Sue Mosher [MVP]" wrote:

Try using GetExchangeUser instead of GetContact.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"converting GAL entries to contacts"
oft.com wrote in message
...
Hi,

I am retrieving the GAL contcts of outlook using the following code
snippet
and converting them into contacts to retrieve the email address of that
particular GAL entry.
Here I am using Outlook 2007 dll.

OutLook.

Application app = new Microsoft.Office.Interop.Outlook. Application ();



AddressEntries addressEntries = app.Session.AddressLists[ "Global Address
List" ].AddressEntries;



for ( int a = 1; a = addressEntries.Count; a++)

{

OutLook.

ContactItem contact = ( ContactItem )addressEntries[a].GetContact();



string email = contact.Email1Address;

}

when I try to convert each address entry of Global Address List(GAL) into
a
contact, it is not converting EmailAddreess value of that GAL entry
,instead
it is converting to a null value eventhough email address exists for that
GAL
entry.

How to get email address property value when converting a GAL entry into a
contact?
Here I am using outlook 2007 Object Model dll.

So, anyone please help me how can I solve the above requirement through
the
sample code snippet.




  #4  
Old July 24th 09, 01:44 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Problem while converting GAL entries to contacts in Outlook C

What requirements?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"converting GAL entries to contacts"
oft.com wrote in message
...
Hi,

Thanks for the Reply.
I have another doubt.

How can I filter the Global Address List contacts based on my requiremnts?
OutLook.AddressEntries class does not contain a methos like Restrict or
Find.
So, How can I filter the Global Address List contacts based on my name?

"Sue Mosher [MVP]" wrote:

Try using GetExchangeUser instead of GetContact.



"converting GAL entries to contacts"
oft.com wrote in
message
...
Hi,

I am retrieving the GAL contcts of outlook using the following code
snippet
and converting them into contacts to retrieve the email address of that
particular GAL entry.
Here I am using Outlook 2007 dll.

OutLook.

Application app = new Microsoft.Office.Interop.Outlook. Application ();



AddressEntries addressEntries = app.Session.AddressLists[ "Global
Address
List" ].AddressEntries;



for ( int a = 1; a = addressEntries.Count; a++)

{

OutLook.

ContactItem contact = ( ContactItem )addressEntries[a].GetContact();



string email = contact.Email1Address;

}

when I try to convert each address entry of Global Address List(GAL)
into
a
contact, it is not converting EmailAddreess value of that GAL entry
,instead
it is converting to a null value eventhough email address exists for
that
GAL
entry.

How to get email address property value when converting a GAL entry
into a
contact?
Here I am using outlook 2007 Object Model dll.

So, anyone please help me how can I solve the above requirement through
the
sample code snippet.






  #5  
Old July 24th 09, 06:07 AM posted to microsoft.public.outlook.program_vba
converting GAL entries to contacts[_2_]
external usenet poster
 
Posts: 3
Default Problem while converting GAL entries to contacts in Outlook C


How can I filter or Restrict the GAL contacts based on name or
MobileTelephoneNumber or companyName.?

I think Outlook.AddressEntries class does not contain a methods like Find()
or Restrict() to restrict the contacts based on our query.

How can I acheve the above requirement?


"Sue Mosher [MVP]" wrote:

Try using GetExchangeUser instead of GetContact.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"converting GAL entries to contacts"
oft.com wrote in message
...
Hi,

I am retrieving the GAL contcts of outlook using the following code
snippet
and converting them into contacts to retrieve the email address of that
particular GAL entry.
Here I am using Outlook 2007 dll.

OutLook.

Application app = new Microsoft.Office.Interop.Outlook. Application ();



AddressEntries addressEntries = app.Session.AddressLists[ "Global Address
List" ].AddressEntries;



for ( int a = 1; a = addressEntries.Count; a++)

{

OutLook.

ContactItem contact = ( ContactItem )addressEntries[a].GetContact();



string email = contact.Email1Address;

}

when I try to convert each address entry of Global Address List(GAL) into
a
contact, it is not converting EmailAddreess value of that GAL entry
,instead
it is converting to a null value eventhough email address exists for that
GAL
entry.

How to get email address property value when converting a GAL entry into a
contact?
Here I am using outlook 2007 Object Model dll.

So, anyone please help me how can I solve the above requirement through
the
sample code snippet.




  #6  
Old July 24th 09, 04:43 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Problem while converting GAL entries to contacts in Outlook C

Most address book providers (GAL being the only semi-functioning example) do
not implement the search functionality.
You can try Redemption to do that (RDOAddressEntry.MAPITable will let you
perform restrictions), but your mileage will vary depending on the address
book provider and the compexity of the restriction.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"converting GAL entries to contacts"
oft.com wrote in message
...

How can I filter or Restrict the GAL contacts based on name or
MobileTelephoneNumber or companyName.?

I think Outlook.AddressEntries class does not contain a methods like
Find()
or Restrict() to restrict the contacts based on our query.

How can I acheve the above requirement?


"Sue Mosher [MVP]" wrote:

Try using GetExchangeUser instead of GetContact.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"converting GAL entries to contacts"
oft.com wrote in
message
...
Hi,

I am retrieving the GAL contcts of outlook using the following code
snippet
and converting them into contacts to retrieve the email address of that
particular GAL entry.
Here I am using Outlook 2007 dll.

OutLook.

Application app = new Microsoft.Office.Interop.Outlook. Application ();



AddressEntries addressEntries = app.Session.AddressLists[ "Global
Address
List" ].AddressEntries;



for ( int a = 1; a = addressEntries.Count; a++)

{

OutLook.

ContactItem contact = ( ContactItem )addressEntries[a].GetContact();



string email = contact.Email1Address;

}

when I try to convert each address entry of Global Address List(GAL)
into
a
contact, it is not converting EmailAddreess value of that GAL entry
,instead
it is converting to a null value eventhough email address exists for
that
GAL
entry.

How to get email address property value when converting a GAL entry
into a
contact?
Here I am using outlook 2007 Object Model dll.

So, anyone please help me how can I solve the above requirement through
the
sample code snippet.






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while converting GAL entries to contacts converting GAL entries to contacts Outlook - Using Contacts 1 July 22nd 09 02:34 PM
Shared contacts list to show up as radio button selectable in Cont Rick Young Outlook - Using Contacts 4 June 11th 09 04:39 PM
Problem importing ZIP codes from Excel 2002 into Outlook 2003 cont PWN2 Outlook - Using Contacts 1 July 11th 07 08:35 AM


All times are GMT +1. The time now is 10:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.