473,465 Members | 1,489 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Word Automation problem (speed)

Hello there.

Not sure if you've time to read this, but i'm having a problem. I have
a test application with the following code (see below). I have run the
app on thirteen machines and on eight of them Word takes about thirty
seconds to load and on the remaing five it's pretty much instant.

The version of Word (10.5815.4219 sp2) is the same on every machine and
each machine has a standard build.

I've been looking at this for two weeks and can't for the life of me
work out why Word should load so slowly.

Any ideas you might have would be gratefully received.

Best wishes, Matt.

Code:

private void button1_Click(object sender, EventArgs e)

{
Word.ApplicationClass WordApp = new Word.ApplicationClass();

WordApp.Visible = true;

}

Jul 10 '06 #1
2 1515
Have you previously loaded Word on any of the quick machines? Word always
takes a long time to load first time and is very much quicker on the second
and subsequent loads. Could there be something on the fast machines that is
loading Word or the office components? I seem to remember there was an app
that you could include in your startup that pre-loaded bits of office.
Perhaps some machines have it and others don't.

Just a thought
Steve
<ma*********@gmail.comwrote in message
news:11**********************@s13g2000cwa.googlegr oups.com...
Hello there.

Not sure if you've time to read this, but i'm having a problem. I have
a test application with the following code (see below). I have run the
app on thirteen machines and on eight of them Word takes about thirty
seconds to load and on the remaing five it's pretty much instant.

The version of Word (10.5815.4219 sp2) is the same on every machine and
each machine has a standard build.

I've been looking at this for two weeks and can't for the life of me
work out why Word should load so slowly.

Any ideas you might have would be gratefully received.

Best wishes, Matt.

Code:

private void button1_Click(object sender, EventArgs e)

{
Word.ApplicationClass WordApp = new Word.ApplicationClass();

WordApp.Visible = true;

}

Jul 10 '06 #2

All the machines have the same build. Also I can manually (ie. not
programmatically) load Word on any machine and it's lightning fast, so
I don't think it's Word itself but rather something the COM is doing.

Matt.
Steve Barnett wrote:
Have you previously loaded Word on any of the quick machines? Word always
takes a long time to load first time and is very much quicker on the second
and subsequent loads. Could there be something on the fast machines that is
loading Word or the office components? I seem to remember there was an app
that you could include in your startup that pre-loaded bits of office.
Perhaps some machines have it and others don't.

Just a thought
Steve
<ma*********@gmail.comwrote in message
news:11**********************@s13g2000cwa.googlegr oups.com...
Hello there.

Not sure if you've time to read this, but i'm having a problem. I have
a test application with the following code (see below). I have run the
app on thirteen machines and on eight of them Word takes about thirty
seconds to load and on the remaing five it's pretty much instant.

The version of Word (10.5815.4219 sp2) is the same on every machine and
each machine has a standard build.

I've been looking at this for two weeks and can't for the life of me
work out why Word should load so slowly.

Any ideas you might have would be gratefully received.

Best wishes, Matt.

Code:

private void button1_Click(object sender, EventArgs e)

{
Word.ApplicationClass WordApp = new Word.ApplicationClass();

WordApp.Visible = true;

}
Jul 10 '06 #3

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

Similar topics

1
by: mickeydisn | last post by:
Sub: C++ Word automation Extract text hello. I want extact text form a word document using a visual c++ programme. I have see a lot of documentation. and my analysis is that I must use a...
3
by: Mike MacSween | last post by:
Office 2000 From Access I've been starting an instance of word and doing a mail merge. Everything hunky-dory until I applied SP1 yesterday. Now this: dim wrd as Object set wrd =...
12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
6
by: Colleyville Alan | last post by:
I have an application that has an Access table that stores the locations of slides in a Powerpoint file. This used to work fine when there were about 4 files and 200 slides. The database would...
4
by: Daniel | last post by:
Hello, i have a problem with the word automation from c#. First, i want to mention, that i don't have any dependencies from word in my c#-project, i want to use the system.reflection model to...
4
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
7
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
4
by: JensB | last post by:
I have VB.Net VS2005 App which creates MS Word documents. Clients are using Word 2000 and Word2003. Project refers to MS Word 9.0 Object library, declaring Word as an object. On the Word 2000...
10
by: cj2 | last post by:
I open a word template in VB and add values to the bookmarks then save the document as as pdf. When I then go to close the document it pops up a save as dialog box. It's already saved the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.