开发环境:VS2010 Office2007

 

Interop.Word.dll

Interop.Microsoft.Office.Core.dll

Interop.VBIDE.dll

开发Word需要上面三个dll,各个dll的版本不同会导致上述异常,比如

Interop.Word.dll是office11(2003)编译的,而Interop.Microsoft.Office.Core.dll是office12(2007)编译的,建议用同一版本

下载地址:http://lanhy2000.blog.163.com/blog/static/43678608200841155250178/

 

另外VS2010还要右键dll-->属性-->嵌入互操作类型(设为false)

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2021-05-01
  • 2022-12-23
  • 2021-06-14
  • 2021-05-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-10-10
  • 2021-10-27
  • 2021-12-22
相关资源
相似解决方案