[AccessD] Automation of word

jwcolby jwcolby at colbyconsulting.com
Mon Feb 4 09:42:20 CST 2008


Jim,

I think I have a pointer to Word.  Obviously Word can be opened already, and
I am not entirely sure what happens in all the various cases but my intent
is to grab a pointer and use that to keep my instance open, and to control
the close later on.


John W. Colby
Colby Consulting
www.ColbyConsulting.com 
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson
Sent: Monday, February 04, 2008 10:14 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Automation of word

John,
I'm not sure I would even attempt to control another's machine to ensure
Word doesn't close.  There might be a few irate users, if you do that.   I
would probably give the user a message indicating that closing Word would
not create the desired results and then ask the user if that their intent.
Maybe put the message is something like yellow letters on a red background
so they couldn't mistake it for a standard MS message.

Jim
jhewson at karta.com
 
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Monday, February 04, 2008 8:49 AM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Automation of word

I have a rather elaborate mail merge system in a client's system.  ATM I
open the document, merge the date and the user takes over, filling in things
that they need to fill in, then printing and closing the word instance.  It
works well enough however I do not control the save of the document, and
very occasionally Word does not close cleanly, leaving a hidden instance
open WITH the associated merge text document open as well, preventing the
next merge from occurring.

I need to know if it is possible to open word in a mode that prevents it
from being closed by the user?  I would then have the user go back to my
application and press a button saying that they succeeded in doing the mail
merge.  I would save the document and close Word down.

Can I prevent the user from closing Word?

John W. Colby
Colby Consulting
www.ColbyConsulting.com 

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list