How to Kill the particualr instance of the WINWORD in C#
How to Kill the particualr instance of the WINWORD in C#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Sep 20, 2011, 6:40 PM
Dorababu MekaPosted Sep 20, 2011, 5:25 AM
ByVal hWnd As IntPtr, _
ByRef lpdwProcessId As IntPtr) As IntPtr
' create the excel instance...
Dim exl As Excel.Application = New Excel.Application
' let's get it's process!
Dim processId As IntPtr
' we ignore the return value, since we don't care
' about the thread id...
GetWindowThreadProcessId (exl.hWnd, processId)
Dim excelProcess As Process = Process.GetProcessById (processId.ToInt32())
VulpesPosted Sep 20, 2011, 5:19 AM
http://www.c-sharpcorner.com/Forums/Thread/118444/how-to-avoid-opening-the-worddocument-which-is-already-open.aspx