Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过运行 WindowsApplication 打开程序(例如:Word,Paint),然后在其中进行更改(例如在 Word 中写入文本)?
如果您想以编程方式访问 ms office 程序,您可以查看Microsoft.Office.Interop命名空间。
查看Process类。
您可以MS-Word file使用此类打开。在操作系统选择的文件编辑器中编辑它。并且当您关闭时,Process将通知该对象。
MS-Word file
Process
该链接下面还有一个示例程序。