打开多个Excel实例 [英] Open Multiple instance of excel

查看:128
本文介绍了打开多个Excel实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生
我想通过Webbrowser控件在任务管理器中使用两个不同的Excel实例打开Excel,但是我不能给我合适的解决方案"WebBrowser.Navigate(path1)"
"WebBrowser2.Navigate(path2)"

Hi Sir
I Want to open Excel Through Webbrowser Control With Two Different Instance of Excel in task manager , But i can''nt can you give me proper Solution , "WebBrowser.Navigate(path1)"
"WebBrowser2.Navigate(path2)"

推荐答案

为什么您认为Web浏览器或控件WebBrowser完全可以打开Excel文件?这不可以. Excel即使在Windows上也不是任何Web标准的一部分,它需要Microsoft Office.您最好使用System.Diagnostics.Process.Start通过命令行管理程序打开Excel,请参见 http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx [
Why do you think a Web browser or the control WebBrowser can open Excel file at all? It cannot. Excel is not a part of any of Web standards even on Windows, it requires Microsoft Office. You can be better off just opening Excel via the Shell using System.Diagnostics.Process.Start, see http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].

—SA


这篇关于打开多个Excel实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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