how to kill word session forcibly...

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Veena (moon_vr_at_yahoo.com)
Date: 05/13/04


Date: 13 May 2004 02:26:41 -0700

Hi,
 We have a VB program which opens word documents and data source and
performs mailmerge programmatically.
Whenever there is a problem with mailmerge (eg: some mergefields are
missing) the word session hangs.
Can you please tell me a method wherein i can forcibly kill the word
session. I tried calling the Quit method on WordApplication object and
close method on the word docs which are open. Both the statements hang
as word itself has hanged.
How do i forcible kill the word session programmatically ....
Obviously, error traping to avoid the problem would be the best
solution, but we are catering to a generic solution for
troubleshooting.
We are using VB6 with word 2000

Any help would be greatly appreciated!!

Thanks & Regards,
Veena.