472,779 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 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 8348
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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.