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

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 8412
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ZagrebMike | last post by:
On our (intranet) web site we have an ASP page that runs a report which serves up the results in a dynamic Excel file (i.e it specifies Response.ContentType = "application/vnd.ms-excel"). This...
5
by: Matt | last post by:
I know it is possible to establish a connection to an SQL Server over the Internet via Enterprise Manager. My question is, how secure is this connection? Is there a best practices document for this...
3
by: hkappleorange | last post by:
I connect to mdb file using the following codes. How should I modify it if I want to connect to Excel instead ? <%@ Import Namespace="System.Data.OleDb" %> <% Dim conAuthors As...
3
by: chethana | last post by:
I am using copmaq ipaq pocket pc 2002 h3600 series. This device is synchronized with desk top pc running on windows 2000. I want this pocket pc to be conncted to internet .Kindly help ...
5
by: jersey | last post by:
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...
1
by: Laurence | last post by:
Hi there, The force application command will terminate the connections specified, but it does not stop new applications from connecting to the databases. Is there anyway to stop new...
0
by: Ned Balzer | last post by:
I have a puzzling problem. I am using some code I found in another thread here to output the results of a gridview to excel. Here is the subroutine: Sub SendToExcel(ByVal Source As Object,...
0
by: ssrirao | last post by:
There is an Excel Spreadsheet containing data, residing in an internet site. It’s very easy to Import data from a local Excel Spreadsheet into SQL Server Database Table using DTS. But in my case...
8
by: Lemune | last post by:
Hi, I'm developing window service application on C# 2005. The service is to read a new excel file on certain directory, and process it to database. The service work find on XP. But when I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.