我想在我的vb.net项目中打开Word文档 [英] I want to open word document in my vb.net project

查看:545
本文介绍了我想在我的vb.net项目中打开Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的vb项目中打开Word文档.我添加了对Microsoft.office.12.0对象库的引用.但是Microsoft.office.interop.word无法导入到我的项目中.它用红色墨水线显示.如何在我的project.i中导入word文档.我正在使用Visual Studio2005.请任何人都可以帮助我

在此先感谢

解决方案

如果您查看 ^ ](并选择VS2005版本),您将看到它支持V11,而不是V12-我怀疑Office 12需要比VS2005支持更高版本的.NET Framework.考虑升级到2008或2010(如果需要,则为快速版本)或将Office互操作降级到V11.


添加对Microsoft.office.11​​.0对象库的引用....:)

您的计算机上是否已安装MSOffice 2007?

请检查 C:\ windows \ Assembly
中是否存在 Microsoft.Office.Interop.Word 参考.
使用VB.NET进行Word自动化-第I部分 [ 解决方案

If you look at MSDN[^] (and select the VS2005 version) you will see that it supports V11, not V12 - I suspect that office 12 requires a higher version of the .NET framework than VS2005 supports. Consider upgrading to 2008, or 2010 (express editions if necessary) or downgrade Office interop to V11.


add reference to Microsoft.office.11.0 object library....:)


Has MSOffice 2007 is installed on your machine ?

Please check Microsoft.Office.Interop.Word reference exist in C:\windows\Assembly

Word Automation using VB.NET - Part I[^]


这篇关于我想在我的vb.net项目中打开Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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