如何在 Visual Studio Express 中正确加载 Word 对象库 [英] How to load Word Object Library properly in Visual Studio Express

查看:27
本文介绍了如何在 Visual Studio Express 中正确加载 Word 对象库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Visual Studio Express 中为 Visual Basic 加载 Word 对象库,但遇到了一些问题.

I'm trying to load the Word Object Library for Visual Basic in Visual Studio Express but having some trouble.

我转到项目"菜单、添加引用"、COM"并检查 Microsoft Word 14.0 对象库,然后单击确定".但我仍然收到错误Word.application"未定义等.当我输入word"时.没有建议菜单,找不到.

I go to the Project menu, Add Reference, COM and check Microsoft Word 14.0 Object Library and click ok. But I still get the error "Word.application" is not defined etc. And when I type "word." there's no suggestion menu, it's not found.

我做错了什么吗?

推荐答案

在你的模块顶部添加;

Imports Microsoft.Office.Interop

这篇关于如何在 Visual Studio Express 中正确加载 Word 对象库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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