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

Needs to close the screen automaticaly

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
Oct 4 '06 #1
7 1350
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" <ka****@discussions.microsoft.comwrote in message
news:33**********************************@microsof t.com...
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

Oct 4 '06 #2
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" wrote:
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" <ka****@discussions.microsoft.comwrote in message
news:33**********************************@microsof t.com...
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


Oct 4 '06 #3
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" <ka****@discussions.microsoft.comwrote in message
news:53**********************************@microsof t.com...
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" wrote:
>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" <ka****@discussions.microsoft.comwrote in message
news:33**********************************@microso ft.com...
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



Oct 4 '06 #4
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" wrote:
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" <ka****@discussions.microsoft.comwrote in message
news:53**********************************@microsof t.com...
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" wrote:
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" <ka****@discussions.microsoft.comwrote in message
news:33**********************************@microsof t.com...
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


Oct 4 '06 #5
I did ask your requirements :)

"kannan" <ka****@discussions.microsoft.comwrote in message
news:7F**********************************@microsof t.com...
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" wrote:
>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" <ka****@discussions.microsoft.comwrote in message
news:53**********************************@microso ft.com...
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" wrote:

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" <ka****@discussions.microsoft.comwrote in message
news:33**********************************@microso ft.com...
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



Oct 4 '06 #6
I have completed this assignment. Do you want this code for your learning
purpose?? Let me know....

bye
--
kannan
"Daniel" wrote:
I did ask your requirements :)

"kannan" <ka****@discussions.microsoft.comwrote in message
news:7F**********************************@microsof t.com...
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" wrote:
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" <ka****@discussions.microsoft.comwrote in message
news:53**********************************@microsof t.com...
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" wrote:

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" <ka****@discussions.microsoft.comwrote in message
news:33**********************************@microsof t.com...
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



Oct 5 '06 #7
Good luck with your spamming.
"kannan" <ka****@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
>I have completed this assignment. Do you want this code for your learning
purpose?? Let me know....

bye
--
kannan
"Daniel" wrote:
>I did ask your requirements :)

"kannan" <ka****@discussions.microsoft.comwrote in message
news:7F**********************************@microso ft.com...
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" wrote:

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" <ka****@discussions.microsoft.comwrote in message
news:53**********************************@microso ft.com...
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" wrote:

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" <ka****@discussions.microsoft.comwrote in message
news:33**********************************@microso ft.com...
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




Oct 5 '06 #8

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

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
3
by: Nancy | last post by:
Hi, I am working on a project where I have to make a form list static, i.e. put in links so that users can choose a local file. As it stands, it's looking for a php file. Here's an example of the...
2
by: Thierry | last post by:
Hi, I was wondering if there is a easy way to get automaticaly a new key when you insert a query with sqlserver. Now I have to assign an ID=7, but I just want to insert a query and set the...
7
by: Alice | last post by:
Hi, In my program, the user can navigate to many different forms. When they go to the next form, I want the form they have left to close. However, the forms aren't closing. Can anyone tell me...
1
by: Angus Lepper | last post by:
I'm writing a stock ticker for a stock market simulation, and can load the data into the xmlreader in the first place, but can't figure out how to refresh/update the data in it. Any ideas? Code:...
3
by: Karan | last post by:
I am calling finalize when form2 loads and deactivates form1 which closes form1. However, same thing is not happening in form2 because finalize is already called. Does anybody has solution to it....
13
by: John | last post by:
Hi We have an MS Access application which runs on the server but some laptop users need the app to work offline. Our solution has been to use Access replication which automatically syncs data...
1
by: atiq | last post by:
once the feedback is submitted the thank.html popups. however, i want this popup to only be displayed for 3 seconds and then for this window to automaticaly close it self. below is the code for...
0
by: rehanrana | last post by:
I built application in VB6, my application appear in system tray, when I double click on icon of my application, it run screen saver, my screen saver shows images and news. Screen saver...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.