Needs to close the screen automaticaly

G

Guest

hi,
I am writing outlook-addin application using C#. I am trying to import
contact information (from text file) in Outlook using C# code. Below is my
code. But once data is saved the Contact screen is not closing. I don't want
to display any screens. I have tried
oCustomContact.Display(false); but still it is displaying. Is there is
anything I have to do? Please let me know.


TextReader reader = new StreamReader(upLoadContacts);


string Contactline;
string[] ContactInformation;
string Title, name, jobTitle, phone, mobileNo,Email;

while ((Contactline = reader.ReadLine()) != null)
{
ContactInformation = Contactline.Split(new char[] {'~'});
Title = ContactInformation[0];
name = ContactInformation[1];
jobTitle = ContactInformation[2];
phone = ContactInformation[3];
mobileNo = ContactInformation[4];
Email = ContactInformation[5];


Outlook._ContactItem oCustomContact = (Outlook._ContactItem)
oItems.Add("IPM.Contact");
oCustomContact.Title = Title;
oCustomContact.FirstName = name;
oCustomContact.JobTitle = jobTitle;
oCustomContact.HomeTelephoneNumber = phone;
oCustomContact.MobileTelephoneNumber = mobileNo;
oCustomContact.Email1Address = Email;
oCustomContact.Display(true);
oCustomContact.Save();
}
reader.Close();
}
.....
.....
 
D

Daniel

Umm i said before when you postes it looked like you are making spamming
software, and now you son't want any screens to show? Don't spam people.
 
G

Guest

Please understand that I am doing automation tools to syncronice my data base
with outlook. This is not spam. It is ok if you can't help me, but please
don't spread wrong informations to others.
--
kannan


Daniel said:
Umm i said before when you postes it looked like you are making spamming
software, and now you son't want any screens to show? Don't spam people.


kannan said:
hi,
I am writing outlook-addin application using C#. I am trying to import
contact information (from text file) in Outlook using C# code. Below is
my
code. But once data is saved the Contact screen is not closing. I don't
want
to display any screens. I have tried
oCustomContact.Display(false); but still it is displaying. Is there is
anything I have to do? Please let me know.


TextReader reader = new StreamReader(upLoadContacts);


string Contactline;
string[] ContactInformation;
string Title, name, jobTitle, phone, mobileNo,Email;

while ((Contactline = reader.ReadLine()) != null)
{
ContactInformation = Contactline.Split(new char[] {'~'});
Title = ContactInformation[0];
name = ContactInformation[1];
jobTitle = ContactInformation[2];
phone = ContactInformation[3];
mobileNo = ContactInformation[4];
Email = ContactInformation[5];


Outlook._ContactItem oCustomContact = (Outlook._ContactItem)
oItems.Add("IPM.Contact");
oCustomContact.Title = Title;
oCustomContact.FirstName = name;
oCustomContact.JobTitle = jobTitle;
oCustomContact.HomeTelephoneNumber = phone;
oCustomContact.MobileTelephoneNumber = mobileNo;
oCustomContact.Email1Address = Email;
oCustomContact.Display(true);
oCustomContact.Save();
}
reader.Close();
}
....
....
--


Thanks
kannan
 
D

Daniel

In that case you sync once and from then on db is updated direct with
addresses, message boxes informing users wont be an issue. For the odd times
you do it, again message boxes wont be an issue. You want to supress every
message informing a user that you are stealing their addresses. Very
suspiscious to me.


kannan said:
Please understand that I am doing automation tools to syncronice my data
base
with outlook. This is not spam. It is ok if you can't help me, but please
don't spread wrong informations to others.
--
kannan


Daniel said:
Umm i said before when you postes it looked like you are making spamming
software, and now you son't want any screens to show? Don't spam people.


kannan said:
hi,
I am writing outlook-addin application using C#. I am trying to import
contact information (from text file) in Outlook using C# code. Below
is
my
code. But once data is saved the Contact screen is not closing. I don't
want
to display any screens. I have tried
oCustomContact.Display(false); but still it is displaying. Is there is
anything I have to do? Please let me know.


TextReader reader = new StreamReader(upLoadContacts);


string Contactline;
string[] ContactInformation;
string Title, name, jobTitle, phone, mobileNo,Email;

while ((Contactline = reader.ReadLine()) != null)
{
ContactInformation = Contactline.Split(new char[] {'~'});
Title = ContactInformation[0];
name = ContactInformation[1];
jobTitle = ContactInformation[2];
phone = ContactInformation[3];
mobileNo = ContactInformation[4];
Email = ContactInformation[5];


Outlook._ContactItem oCustomContact = (Outlook._ContactItem)
oItems.Add("IPM.Contact");
oCustomContact.Title = Title;
oCustomContact.FirstName = name;
oCustomContact.JobTitle = jobTitle;
oCustomContact.HomeTelephoneNumber = phone;
oCustomContact.MobileTelephoneNumber = mobileNo;
oCustomContact.Email1Address = Email;
oCustomContact.Display(true);
oCustomContact.Save();
}
reader.Close();
}
....
....
--


Thanks
kannan
 
G

Guest

It is upto you....:-( I don't want to explain anymore about my requirements.
But, please don't give wrong information to others without knowing other
person requirements.

Thanks
--
kannan


Daniel said:
In that case you sync once and from then on db is updated direct with
addresses, message boxes informing users wont be an issue. For the odd times
you do it, again message boxes wont be an issue. You want to supress every
message informing a user that you are stealing their addresses. Very
suspiscious to me.


kannan said:
Please understand that I am doing automation tools to syncronice my data
base
with outlook. This is not spam. It is ok if you can't help me, but please
don't spread wrong informations to others.
--
kannan


Daniel said:
Umm i said before when you postes it looked like you are making spamming
software, and now you son't want any screens to show? Don't spam people.


hi,
I am writing outlook-addin application using C#. I am trying to import
contact information (from text file) in Outlook using C# code. Below
is
my
code. But once data is saved the Contact screen is not closing. I don't
want
to display any screens. I have tried
oCustomContact.Display(false); but still it is displaying. Is there is
anything I have to do? Please let me know.


TextReader reader = new StreamReader(upLoadContacts);


string Contactline;
string[] ContactInformation;
string Title, name, jobTitle, phone, mobileNo,Email;

while ((Contactline = reader.ReadLine()) != null)
{
ContactInformation = Contactline.Split(new char[] {'~'});
Title = ContactInformation[0];
name = ContactInformation[1];
jobTitle = ContactInformation[2];
phone = ContactInformation[3];
mobileNo = ContactInformation[4];
Email = ContactInformation[5];


Outlook._ContactItem oCustomContact = (Outlook._ContactItem)
oItems.Add("IPM.Contact");
oCustomContact.Title = Title;
oCustomContact.FirstName = name;
oCustomContact.JobTitle = jobTitle;
oCustomContact.HomeTelephoneNumber = phone;
oCustomContact.MobileTelephoneNumber = mobileNo;
oCustomContact.Email1Address = Email;
oCustomContact.Display(true);
oCustomContact.Save();
}
reader.Close();
}
....
....
--


Thanks
kannan
 
D

Daniel

I did ask your requirements :)

kannan said:
It is upto you....:-( I don't want to explain anymore about my
requirements.
But, please don't give wrong information to others without knowing other
person requirements.

Thanks
--
kannan


Daniel said:
In that case you sync once and from then on db is updated direct with
addresses, message boxes informing users wont be an issue. For the odd
times
you do it, again message boxes wont be an issue. You want to supress
every
message informing a user that you are stealing their addresses. Very
suspiscious to me.


kannan said:
Please understand that I am doing automation tools to syncronice my
data
base
with outlook. This is not spam. It is ok if you can't help me, but
please
don't spread wrong informations to others.
--
kannan


:

Umm i said before when you postes it looked like you are making
spamming
software, and now you son't want any screens to show? Don't spam
people.


hi,
I am writing outlook-addin application using C#. I am trying to
import
contact information (from text file) in Outlook using C# code.
Below
is
my
code. But once data is saved the Contact screen is not closing. I
don't
want
to display any screens. I have tried
oCustomContact.Display(false); but still it is displaying. Is there
is
anything I have to do? Please let me know.


TextReader reader = new StreamReader(upLoadContacts);


string Contactline;
string[] ContactInformation;
string Title, name, jobTitle, phone, mobileNo,Email;

while ((Contactline = reader.ReadLine()) != null)
{
ContactInformation = Contactline.Split(new char[] {'~'});
Title = ContactInformation[0];
name = ContactInformation[1];
jobTitle = ContactInformation[2];
phone = ContactInformation[3];
mobileNo = ContactInformation[4];
Email = ContactInformation[5];


Outlook._ContactItem oCustomContact = (Outlook._ContactItem)
oItems.Add("IPM.Contact");
oCustomContact.Title = Title;
oCustomContact.FirstName = name;
oCustomContact.JobTitle = jobTitle;
oCustomContact.HomeTelephoneNumber = phone;
oCustomContact.MobileTelephoneNumber = mobileNo;
oCustomContact.Email1Address = Email;
oCustomContact.Display(true);
oCustomContact.Save();
}
reader.Close();
}
....
....
--


Thanks
kannan
 
G

Guest

I have completed this assignment. Do you want this code for your learning
purpose?? Let me know....

bye
--
kannan


Daniel said:
I did ask your requirements :)

kannan said:
It is upto you....:-( I don't want to explain anymore about my
requirements.
But, please don't give wrong information to others without knowing other
person requirements.

Thanks
--
kannan


Daniel said:
In that case you sync once and from then on db is updated direct with
addresses, message boxes informing users wont be an issue. For the odd
times
you do it, again message boxes wont be an issue. You want to supress
every
message informing a user that you are stealing their addresses. Very
suspiscious to me.


Please understand that I am doing automation tools to syncronice my
data
base
with outlook. This is not spam. It is ok if you can't help me, but
please
don't spread wrong informations to others.
--
kannan


:

Umm i said before when you postes it looked like you are making
spamming
software, and now you son't want any screens to show? Don't spam
people.


hi,
I am writing outlook-addin application using C#. I am trying to
import
contact information (from text file) in Outlook using C# code.
Below
is
my
code. But once data is saved the Contact screen is not closing. I
don't
want
to display any screens. I have tried
oCustomContact.Display(false); but still it is displaying. Is there
is
anything I have to do? Please let me know.


TextReader reader = new StreamReader(upLoadContacts);


string Contactline;
string[] ContactInformation;
string Title, name, jobTitle, phone, mobileNo,Email;

while ((Contactline = reader.ReadLine()) != null)
{
ContactInformation = Contactline.Split(new char[] {'~'});
Title = ContactInformation[0];
name = ContactInformation[1];
jobTitle = ContactInformation[2];
phone = ContactInformation[3];
mobileNo = ContactInformation[4];
Email = ContactInformation[5];


Outlook._ContactItem oCustomContact = (Outlook._ContactItem)
oItems.Add("IPM.Contact");
oCustomContact.Title = Title;
oCustomContact.FirstName = name;
oCustomContact.JobTitle = jobTitle;
oCustomContact.HomeTelephoneNumber = phone;
oCustomContact.MobileTelephoneNumber = mobileNo;
oCustomContact.Email1Address = Email;
oCustomContact.Display(true);
oCustomContact.Save();
}
reader.Close();
}
....
....
--


Thanks
kannan
 
D

Daniel

Good luck with your spamming.


kannan said:
I have completed this assignment. Do you want this code for your learning
purpose?? Let me know....

bye
--
kannan


Daniel said:
I did ask your requirements :)

kannan said:
It is upto you....:-( I don't want to explain anymore about my
requirements.
But, please don't give wrong information to others without knowing
other
person requirements.

Thanks
--
kannan


:

In that case you sync once and from then on db is updated direct with
addresses, message boxes informing users wont be an issue. For the odd
times
you do it, again message boxes wont be an issue. You want to supress
every
message informing a user that you are stealing their addresses. Very
suspiscious to me.


Please understand that I am doing automation tools to syncronice my
data
base
with outlook. This is not spam. It is ok if you can't help me, but
please
don't spread wrong informations to others.
--
kannan


:

Umm i said before when you postes it looked like you are making
spamming
software, and now you son't want any screens to show? Don't spam
people.


hi,
I am writing outlook-addin application using C#. I am trying to
import
contact information (from text file) in Outlook using C# code.
Below
is
my
code. But once data is saved the Contact screen is not closing. I
don't
want
to display any screens. I have tried
oCustomContact.Display(false); but still it is displaying. Is
there
is
anything I have to do? Please let me know.


TextReader reader = new StreamReader(upLoadContacts);


string Contactline;
string[] ContactInformation;
string Title, name, jobTitle, phone, mobileNo,Email;

while ((Contactline = reader.ReadLine()) != null)
{
ContactInformation = Contactline.Split(new char[] {'~'});
Title = ContactInformation[0];
name = ContactInformation[1];
jobTitle = ContactInformation[2];
phone = ContactInformation[3];
mobileNo = ContactInformation[4];
Email = ContactInformation[5];


Outlook._ContactItem oCustomContact = (Outlook._ContactItem)
oItems.Add("IPM.Contact");
oCustomContact.Title = Title;
oCustomContact.FirstName = name;
oCustomContact.JobTitle = jobTitle;
oCustomContact.HomeTelephoneNumber = phone;
oCustomContact.MobileTelephoneNumber = mobileNo;
oCustomContact.Email1Address = Email;
oCustomContact.Display(true);
oCustomContact.Save();
}
reader.Close();
}
....
....
--


Thanks
kannan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top