Word Automation without Word in background running

S

steve.welborn

Hello, I was wondering if there is a plan in the next version of Word to
allow adding a reference to the Word class without Word being started in the
background?

For example everytime you do an Application objApp = new Application(), a
new instance of Word is started in the background. Which is a huge memory hog
and posses a problem for those who need more than one person to access a
class that is built with a reference to Word class.

Why is it made this way and is there a way around it?

Thank you for your time.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?c3RldmUud2VsYm9ybkBiaXR3aXNlc29sdXRpb25zLmNvbQ==?=,
I was wondering if there is a plan in the next version of Word to
allow adding a reference to the Word class without Word being started in the
background?

For example everytime you do an Application objApp = new Application(), a
new instance of Word is started in the background. Which is a huge memory hog
and posses a problem for those who need more than one person to access a
class that is built with a reference to Word class.

Why is it made this way and is there a way around it?
The definition of "automation" is that you're automating (controlling) the
running application. You can't "automate" without Word running; it's logically
not possible.

You don't have to use New Application; you can "Get Object" to use an existing
instance. Of course, you might conflict with the user, but in that case you'd
want to have your own, separate instance.

If all you're doing is generating/altering Word documents, then there's already
a solution for you in Word 2003: XML. Generate the document in WordProcessingML
(Word's native XML vocabulary). You can use standard XML tools for this, no need
for Word to be present on the machine.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top