求使用C# 打开指定word(我使用的是offic2003) 求使用C# 打开指定word文档(我使用的是offic2003) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我自己回复private void button1_Click(object sender, EventArgs e) { object oMissing = System.Reflection.Missing.Value; Word._Application oWord; Word._Document oDoc; oWord = new Word.Application(); oWord.Visible = true; object fileName ="D:\\123.doc"; oDoc = oWord.Documents.Open(ref fileName, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing); } ClickOnce发布出错:远程服务器返回错误: (500) 内部服务器错误。 刷卡机程序怎么做 大家好,C#能安装数字证书吗? 玩过ChartFX的请来看一下~ 找不到一个引用,高手请进来指点一下,送分啦! c#如何追加 C#学习网站有哪些 怎么样实现picturebox中的图片变化。 怎样做一个button的快捷键? 如何屏蔽textbox中的缺省右键菜单(主要是不想出现paste). 怎样才能避免我在按一个按钮时不刷新整个页面!!! c# 打开指定的WORD
private void button1_Click(object sender, EventArgs e)
{
object oMissing = System.Reflection.Missing.Value;
Word._Application oWord;
Word._Document oDoc;
oWord = new Word.Application();
oWord.Visible = true;
object fileName ="D:\\123.doc";
oDoc = oWord.Documents.Open(ref fileName,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing); }