我该如何在webbrowser帮助中打开WORD? [英] how can I open WORD in webbrowser help please

查看:327
本文介绍了我该如何在webbrowser帮助中打开WORD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写类似的代码,但是word应用程序已全屏打开. ı在网络浏览器限制中使用openep吗?我怎么

private void button1_Click(对象发送者,EventArgs e)
{
System.Object nullObject = 0;
字符串str =";
System.Object nullObjStr = str;
Cursor.Current = Cursors.WaitCursor;
字符串yol = @"C:\ Program Files \ Microsoft Office \ Office12 \ winword.exe";
this.webBrowser1.Navigate(yol);

}

Im write code like that but word application is opened full screen. ı wnat its openep in webbrowser limits ?? how can I

private void button1_Click(object sender, EventArgs e)
{
System.Object nullObject = 0;
string str = "";
System.Object nullObjStr = str;
Cursor.Current = Cursors.WaitCursor;
string yol = @"C:\Program Files\Microsoft Office\Office12\winword.exe";
this.webBrowser1.Navigate(yol);

}

推荐答案

您要尝试执行的操作在广泛的发行版中将不起作用.

首先,它高度依赖于用户在其计算机上安装了相同版本的单词.

其次,您不能将EXE外壳化并在浏览器中运行.应用程序具有与网页不同的安全策略.

最后,如果您不需要,请不要重新发明轮子.除了提供几种开源产品之外,Microsoft还开放了Office Live,它是...在浏览器中的宝贝Word".

Office Live [ ^ ]

这可能不是您要寻找的答案,但实际上就是这样.

干杯.
What you''re trying to do will not work in a wide release.

First of all, it''s highly dependent on the user having the same version of word installed on their computer.

Secondly, you can''t shell out an EXE and have in run in the browser. Apps have different security policies than web pages.

Lastly, if you don''t need to, don''t reinvent the wheel. On top of several open source offerings, Microsoft has opened up Office Live, which is...baby Word in a browser.

Office Live[^]

It might not be the answer you''re looking for, but it''s how it is.

Cheers.


这篇关于我该如何在webbrowser帮助中打开WORD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆