从C#Windows窗体的MS Word中打开MS Word文档 [英] Open MS Word Document in MS Word from a C# Windows Form
问题描述
我希望能够通过点击我的窗体上的一个按钮从C#的形式打开MS字已经取得的Word文档,但不知道怎么回事,请帮助。
I want to be able to open a already made word document in MS word from a C# form by clicking a button on my form but don't know how, Please Help.
感谢
推荐答案
我所做的就是把Word文档中,在发布文件夹中我的程序我的.exe文件扩展名,然后在我的$ C $词有这个code的一条线,当某一按钮pressed:
What i have done is put the word document in with my .exe file extension of my program in the Release folder and then in my code i have this one line of code when a certain button is pressed:
System.Diagnostics.Process.Start(document.docx);
System.Diagnostics.Process.Start("document.docx");
这code基本上找到的文件,然后从发布文件夹中打开它。感谢大家的帮助,但。
This code basically finds the document and then opens it from the Release folder. Thanks for everyone's help though.
这篇关于从C#Windows窗体的MS Word中打开MS Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!