ole Word Automation (in safe mode)

J

jduling

Is there a way to call Word 2003 using: ole2.create_obj('Word.Application')
that would allow me to pass the safe mode or no macros (/m) switch?

In our automation environment, switching from Word 97 to Word 2003 adds
around 10 seconds per document, most of which is waiting for Word to close.

Running the jobs manually with the /safe or /m command line switch has
increased the speed almost back to Word 97 levels....

Thanks!
 
C

Cindy M -WordMVP-

Hi Jduling,
Is there a way to call Word 2003 using: ole2.create_obj('Word.Application')
that would allow me to pass the safe mode or no macros (/m) switch?
The only way these switches can be used is by starting Word from the command
line. In VB(A) we can use a Shell method to do this, then we'd have to use
GetObject to pick up the Word instance.
In our automation environment, switching from Word 97 to Word 2003 adds
around 10 seconds per document, most of which is waiting for Word to close.

Running the jobs manually with the /safe or /m command line switch has
increased the speed almost back to Word 97 levels....

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