Word Automation problem (speed)

  • Thread starter Thread starter matt.whitby
  • Start date Start date
M

matt.whitby

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;

}
 
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
 
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.
 
Back
Top