HighTechTalks DotNet Forums  

Poor performance of Word on loading?

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Poor performance of Word on loading? in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?UGV0ZXI=?=
 
Posts: n/a

Default Poor performance of Word on loading? - 07-04-2007 , 05:10 PM






Hello,
we use Word in a vb2005 win-forms-app. We need it for open
password-protected docs and save it without password in a Temp-Path.
We also need it to show the word-doc and write-protect it in a web-browser
within a win-form.

We have the problem that the startup of the application takes to much time.
After lot's of testing the time-losing process is before the module with the
word-Startup beginns- it is NOT the word-Start itself. Even if the Word-Start
is "outsourced" in a background-Worker-Process, this modul containing the
backgroundworker makes a "i wait for nothing 20 seconds".
The Startup itself is in a function, where we check, is word yet alive
(marshal.getactiveobject(word...)) or must it be startet (return new
word.app.)

Sometimes when we remove the interop-office and word from "Verweise" (Links
in English?) the startup will be very fast. But the next start is the return
of slowness.

It's all the same on all machines...XP/SP2, Office 2003., also on
End-user-PCs, and they don't want to wait 30 sec for startup of a programm.

Code like this:
dim oW as word.application
sub loadProgramm
startDatabase
StartDocs
OPenForm
end sub

sub startdatabase
'connect and load data
end sub

sub startdocs ----->BEFORE this modul starts, there is the Timeconsumption!
oW=CheckWord(oW)
.....do something else...
end sub

function Checkword(W as word.application) as Word.application --->FAST
if isnothing(ow) then
check if word is in prozess list and then use this....else
return new word.application
else
return ow
endif
end function


This is what we can see while debugging.

Any suggestions??
Thanks

Peter

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.