[英]Open Word document from Internet Explorer on intranet
We have an internal website for document management. 我们有一个用于文件管理的内部网站。 When you choose to open a document, it run the following script to open the file: 选择打开文档时,它将运行以下脚本来打开文件:
<a href="javascript:opendokument('P:\\01\\2-010-01.doc')">012-010-01</a>
<SCRIPT language=javascript>
function opendokument(dokument){
var objAppl;
try{
objAppl = GetObject("","Word.Application");
objAppl.Documents.open(dokument);
}
catch(exception){
objAppl = new ActiveXObject("Word.Application");
objAppl.Visible = true;
objAppl.Documents.open(dokument);
}
objAppl = null;
}
</script>
The problem is that the macros in the document is not running correctly now as we move from Windows XP with Office 2003 to Windows 7 with Office 2007 (See my previous post ) 问题是,当我们从带有Office 2003的Windows XP迁移到带有Office 2007的Windows 7时,文档中的宏现在无法正确运行(请参阅我以前的文章 )
If I run the script locally on my computer or if I open the documents manually macros work properly. 如果我在计算机上本地运行脚本或手动打开文档,宏将正常工作。 How do I get this to work? 我该如何工作? Any setting I can do in Word or Internet Explorer, or can I rewrite the script on the site that open documents. 我可以在Word或Internet Explorer中进行的任何设置,或者可以在打开文档的网站上重写脚本。
Try allowing all kind of scripts in IE. 尝试允许IE中的所有脚本。 I believe there was something about macroses... 我相信关于宏的事...
我认为问题与IE的安全性设置有关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.