DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 4 Jul 2007 14:10:01 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Peter


Poor performance of Word on loading?   
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
Date:Wed, 4 Jul 2007 14:10:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us