按下按钮打开Word文档 [英] open a word document pressing a button
本文介绍了按下按钮打开Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何按按钮打开Word文档请帮助我
how to open a word document pressing a button plese help me
推荐答案
尝试:
using System.Diagnostics;
public class MyWordHelper
{
public static void OpenMicrosoftWord(string filePath)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "WINWORD.EXE";
startInfo.Arguments = filePath;
Process.Start(startInfo);
}
}
参考:
使用C#从.NET创建和打开Microsoft Word文档 [使用Visual Studio 2010和.Net 4的C#打开Word文档 [
Refer:
Creating and Opening Microsoft Word Documents from .NET Using C#[^]
C# Open Word Documents using Visual Studio 2010 and .Net 4[^]
您好
Sandeep已经完全解决了您的问题.我的链接是.NET中管理单词的一些技巧,您可以尝试一下. 总结C#控制字技能 [
Hi
Sandeep has already perfectly slove your problems. My links is some skills for managing word in .NET, you can have a try. Summarize C# Control Word Skills[^]
这篇关于按下按钮打开Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文