参考文献中的对象库 [英] Object Library in Reference

查看:128
本文介绍了参考文献中的对象库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在编写使用Vb.NET WinForms操作Excel的代码。我在COM选项卡中添加了引用。参考名称是Microsoft Excel 14.0对象库。



我只安装Office 2010.但是当我在计算机上运行程序时可以使用此引用哪个安装Ms Office 2003?



如果没有,有人可以给我一个链接来解决这个问题吗?这意味着,兼容Excel 2003或* .xls文件的引用。我应该下载引用或what..tq

解决方案

不,更好地使用Office互操作程序集。当您安装Office或其应用程序时,它们会安装在GAC中,因此只需使用添加引用窗口的.NET选项卡。



- SA

Hi all,

I''m currently writing code to operate Excel using Vb.NET WinForms. I adding the reference in COM tab. The reference name is Microsoft Excel 14.0 Object Library.

I''m installing only Ms Office 2010. But can this reference can be use when I run the program in computer which installing Ms Office 2003?

If not, could someone give me a link to overcome this? Which mean, a reference which compatible for Excel 2003 also or *.xls file. Should I download the reference or what..tq

解决方案

No, better use the Office interop assemblies. They are installed in GAC when you install Offices or its application, so just use the ".NET" tab of the "Add Reference" window.

—SA


这篇关于参考文献中的对象库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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