How to Quit or Close (not Kill) Word document (process)?

后端 未结 2 912
忘了有多久
忘了有多久 2021-01-18 09:16

In our company we are using Windows application to generate Word (2010) documents. Sometimes the document is not properly closed, so another application (yes, they still cal

2条回答
  •  逝去的感伤
    2021-01-18 09:54

    You can try to set the focus in one of those windows and send the keys Alt F4 to Close those processes

    http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx

    there are several ways to get handles to the windows of the processes.

    Good luck

提交回复
热议问题