Hi,
I have a little question:
with the the following code I created a contact in outlook:
Outlook.ApplicationClass App;
App= new Outlook.ApplicationClass();
Outlook.ContactItemClass Contatto= (Outlook.ContactItemClass)App.CreateItem(Outlook.OlItemType.olContactItem);
Contatto.FullName=FirstName.Text+" "+LastName.Text;
Contatto.Email1Address=EMail.Text;
Contatto.HomeTelephoneNumber=Phone.Text;
Contatto.HomeAddress=Address.Text;
Contatto.HomeAddressCity=City.Text;
Contatto.HomeAddressPostalCode=ZipCode.Text;
Contatto.HomeAddressState=State.Text;
Contatto.Close(Outlook.OlInspectorClose.olSave);
my problem is the following:
Since this procedure is made by an application that retrives data from a SQL Database, and each time that the user saves the records, it saves it automaticaly in outlook too, I need to know if there is a way to find out if the contact all ready exists, in which case I'll skip it.
I found an object called Outlook.Explores, but I don't know how to use it
can someone help ?
Thanks Alex
I have a little question:
with the the following code I created a contact in outlook:
Outlook.ApplicationClass App;
App= new Outlook.ApplicationClass();
Outlook.ContactItemClass Contatto= (Outlook.ContactItemClass)App.CreateItem(Outlook.OlItemType.olContactItem);
Contatto.FullName=FirstName.Text+" "+LastName.Text;
Contatto.Email1Address=EMail.Text;
Contatto.HomeTelephoneNumber=Phone.Text;
Contatto.HomeAddress=Address.Text;
Contatto.HomeAddressCity=City.Text;
Contatto.HomeAddressPostalCode=ZipCode.Text;
Contatto.HomeAddressState=State.Text;
Contatto.Close(Outlook.OlInspectorClose.olSave);
my problem is the following:
Since this procedure is made by an application that retrives data from a SQL Database, and each time that the user saves the records, it saves it automaticaly in outlook too, I need to know if there is a way to find out if the contact all ready exists, in which case I'll skip it.
I found an object called Outlook.Explores, but I don't know how to use it
can someone help ?
Thanks Alex