By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,834 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

WinWord via CreateObject

P: n/a
I have a small Access application that performs Microsoft mail
merges. To reduce the time it takes to print to Word, I create a Word
object, via a call to CreateObject, when my program is initially
started. My dilemma--how do I terminate this instance of Microsoft
Word when my program finishes executing? I could easily make a call
to GetObject to obtain a reference to A copy of Microsoft Word. But
how do I know it is the instance that I originally created? Should I
just terminate every instance of Microsoft Word when my program
quits? Might this not cause stability issues for other applications?
How do you guys handle this situation? Thanks for your help.

Vincent

May 10 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Try this:

http://www.mvps.org/access/api/api0007.htm

Google fIsAppRunning for examples.

For added light reading, Google appisrunning

There's bound to be something you like, and I suspect you'll get a few more
useful replies here as well.

Cheers,
Alan Carpenter

Vincent <an**********@verizon.netwrote in
news:11**********************@y80g2000hsf.googlegr oups.com:
I have a small Access application that performs Microsoft mail
merges. To reduce the time it takes to print to Word, I create a Word
object, via a call to CreateObject, when my program is initially
started. My dilemma--how do I terminate this instance of Microsoft
Word when my program finishes executing? I could easily make a call
to GetObject to obtain a reference to A copy of Microsoft Word. But
how do I know it is the instance that I originally created? Should I
just terminate every instance of Microsoft Word when my program
quits? Might this not cause stability issues for other applications?
How do you guys handle this situation? Thanks for your help.

Vincent
May 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.