引用Excel 07和10 [英] Referencing Excel 07 and 10

查看:101
本文介绍了引用Excel 07和10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个程序,该程序将在多台计算机上运行,​​并在网络上的公共位置写入excel文件。问题是,并非每台计算机都运行相同版本的excel。一些正在运行07而一些正在运行10.如果我引用
07然后它将无法使用10,如果我引用10然后它将无法使用07.我已经想出如何确定哪个版本的excel计算机正在运行,但我如何告诉程序引用哪个版本?是他们引用excel版本的所有类型
的方法(如通用的excel引用)?

I am creating a program that will run on multiple computers and write to an excel file in a common place on the network. the problem is, not every computer is running the same version of excel. some are running 07 and some are running 10. if i reference 07 then it won't work with 10, if i reference 10 then it won't work with 07. i have figured out how to determine which version of excel the computer is running, but how do i tell the program which version to reference? is their a way to reference all types of excel versions(like a generic excel reference)?

推荐答案

是的,使用VSTO。查看VSTO论坛了解更多详情。

Yes, use VSTO. Check the VSTO forum for more details.

或者你可以使用后期绑定,但VSTO已经包含了所有必要的代码。

Alternativelly you can use late binding, but VSTO wraps all the necessary code already.


这篇关于引用Excel 07和10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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