Stop Excel connecting to Internet?

  • Thread starter Thread starter jersey
  • Start date Start date
J

jersey

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
 
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 ?
 
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.
 
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)
 
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.
 
Back
Top