i created a word doc in vb but the problem is each time my button is clicked it opens a new doc. i have tried the following code to terminate it after it fulfilled its purpose but nothing seems to work and i have search multiple sites but found no answer that helped i used interop
my attempts to close the background winword.exe (objDoc is the the word doc )
objDoc.Close()
objDoc.Application.Quit()
objDoc.Application.DDETerminateAll()
GC.Collect()
System.Runtime.InteropServices.Marshal.FinalReleaseComObject(objDoc)
and yes i did look at the post on this site about closing interop word applications but its fails so i am open to any new ideas