把JSP中的表格导入到MSP中,在Microsoft Project 2007版本工作正常。
但是在Project 2013版本中,会报如下错误。
System.Runtime.InteropServices.COMException (0x000003EC): An unexpected error occurred with the method.
在 System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
在 Microsoft.Office.Interop.MSProject.ProjectClass.Activate()
查了CSDN文档,activate()事件在2013中没看出有变化。
VSTO在注册表中也有安装,在目录
HKLM\SOFTWARE\Wow6432Node\Microsoft\VSTO Runtime Setup\v4
下有配置项 (我的操作系统是64位win7)
InstallerPath=C:\Program Files (x86)\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe
在网上搜了好久,没找到解决方案。求指教。