我用axWebBrowser显示word文档,请问如何关闭word文档????
(1)
Object missing =Type.Missing;//2;
Object sFilePath = Path;
this.axWebBrowser1.Navigate2(ref sFilePath, ref missing, ref missing, ref missing, ref missing);
在装载完成事件NavigateComplete2里
wordApp = e.pDisp.GetType().InvokeMember("Application", System.Reflection.BindingFlags.GetProperty, null, e.pDisp, null) as Word.Application;
wordApp竟然什么也得不到!!!
(2)控件第一次装载word文档时候,有提示是否打开word文档,怎么解决?