WinWord.exe does not quit

  • Thread starter Thread starter Bhavya Shah
  • Start date Start date
B

Bhavya Shah

Hello there,
I am facing a strange problem. I use office converters for converting
Microsoft Word documents to html in my application. I use office automation
for the entire process. I open the Word file in invisible mode for
conversion to html. But I face a problem after the conversion. The
WinWord.exe does not quit.

I use the following code for quitting.

objWord.quit();
where objWord is the MS-Word object.
Winword does quite if I set the visible option while opening the file to
TRUE. But I can not do that here as mine is a batch coversion application.
I would be highly obliged if anyone can help me out.

Regards,
Bhavya Shah
 
I think you should write objword.Close();
I have never seen "objword.quit(); "in any source.
 
Hello there,
Thanks for your prompt reply...
objWord is the object of Word.Application class. It only has quite function.
I can close a Word document with document.Close() function, but I am not
allowed to do so as my document opens in invisible mode, that is in the
background. I do not want to open an Instance of Word that is seen to the
user bcoz this is a batch conversion application.

Regards,
Bhavya Shah
 
Back
Top