469,312 Members | 2,492 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

Stop Excel connecting to Internet?



I am creating an instance of Excel in a WinForm application. When I try
to run this application, there is a long wait followed by a message from
my firewall that my application is attempting to connect to the internet.

Is there any way to stop automation instance of office from connecting to
the internet?

TIA, LJ
Jul 28 '05 #1
5 7882
Do you know here it tries to connect ?

Do you have an Internet files in your recently opened files ? If yes what if
you clear this list ?

--
Patrice

"jersey" <je****@yahoo.com> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...


I am creating an instance of Excel in a WinForm application. When I try
to run this application, there is a long wait followed by a message from
my firewall that my application is attempting to connect to the internet.

Is there any way to stop automation instance of office from connecting to
the internet?

TIA, LJ

Jul 29 '05 #2
I am creating an instance of Excel in a WinForm application. When I try
to run this application, there is a long wait followed by a message from
my firewall that my application is attempting to connect to the internet.

Is there any way to stop automation instance of office from connecting to
the internet?
Do you know here it tries to connect ?

Do you have an Internet files in your recently opened files ? If yes what if
you clear this list ?


No, I do not have internet files in the MRU list. I think it may be
Excel's online help trying to connect, but, that's just it, I really don't
know why this is happening.

Jul 29 '05 #3
Any way to see with the firewall where exactly it tries to connect ?

--
Patrice

"jersey" <je****@yahoo.com> a écrit dans le message de
news:MP************************@msnews.microsoft.c om...
I am creating an instance of Excel in a WinForm application. When I try to run this application, there is a long wait followed by a message from my firewall that my application is attempting to connect to the internet.
Is there any way to stop automation instance of office from connecting to the internet?
Do you know here it tries to connect ?

Do you have an Internet files in your recently opened files ? If yes

what if you clear this list ?


No, I do not have internet files in the MRU list. I think it may be
Excel's online help trying to connect, but, that's just it, I really don't
know why this is happening.

Jul 29 '05 #4
Patrice wrote...
Any way to see with the firewall where exactly it tries to connect ?


Here is the application code:

Excel.Application xl = null;

[STAThread]
static void Main()
{
Application.Run(new Form1());
}

private void button1_Click(object sender, System.EventArgs e)
{
if (xl == null)
{
xl = new Excel.Application();
xl.Visible = true;
Excel.Workbook book =
xl.Workbooks.Add(Excel.XlSheetType.xlWorksheet);
Excel.Worksheet sheet = (Excel.Worksheet)book.ActiveSheet;
Excel.Range r = (Excel.Range)sheet.Cells[1,"A"];
r.Value2 = "Hello World";
}
The following is a dump of the firewall message which happens on
application startup (before _any_ action has occurred):

File Path : WindowsApplication4.exe
Process ID : 0xD24 (Heximal) 3364 (Decimal)

Connection origin : local initiated
Protocol : TCP
Local Port : 1115
Remote Name : crl.microsoft.com
Remote Address : 131.107.115.28
Remote Port : 80 (HTTP - World Wide Web)

Jul 29 '05 #5
Patrice wrote...
Any way to see with the firewall where exactly it tries to connect ?


Ignore my last post. The firewall reports that my application is
attempting to connect to clr.microsoft.com. I did a Google search on that
domain name and found the solution to my problem. My application is no
longer slow to start and no more connections being attempted to the
internet.
Jul 30 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by ZagrebMike | last post: by
3 posts views Thread by hkappleorange | last post: by
3 posts views Thread by chethana | last post: by
5 posts views Thread by jersey | last post: by
reply views Thread by Ned Balzer | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.