在装有 Office 2003/2007 的系统上与 VS 2005 对比 Office XP PIA?

发布于 2024-07-14 09:55:42 字数 1056 浏览 5 评论 0原文

在我的开发系统上,我运行的是 Office 2007,之前安装了 Office 2003,因此可以使用 Microsoft Office 11.0 和 12.0 对象模型。 我们的生产环境正在升级到 Office 2007,但还没有发生 - 仍在生产中运行 Office XP,并且我需要能够调试一个(继承的)VB.Net(VS 2005)应用程序针对 Office XP (10.0) (Excel) 使用 Office Interop。

我可以简单地下载、安装和引用 Office XP PIA (http://www.microsoft.com/downloads/details.aspx?familyid=C41BD61E-3060-4F71-A6B4-01FEBA508E52)以便编译运行应用程序? 之前的版本已针对 Office 2007 进行了测试,它似乎可以与“旧”互操作/PIA 配合使用。

我有“旧的”Interop.Excel 等,唯一给我带来问题的参考是 Microsoft Office 10.0 对象模型(它表示 Microsoft Office 12.0 对象模型,但在我的 IDE 中有一个感叹号)。

我还发现 http://www.codeproject.com/KB/office/Compile2003VstoVista2007.aspx (适用于装有 2007 的系统上的 Office 2003),建议安装旧版本的 Office,然后在文本编辑器中处理项目文件。 虽然我不介意在项目文件上使用文本编辑器,但我宁愿不安装 Office XP,除非必须这样做(如果需要,我可以访问它)。 我希望能够按原样加载项目(使用“旧”参考)。

On my development system, I am running Office 2007, and previously had Office 2003 installed, and thus have the Microsoft Office 11.0 and 12.0 Object Models available. Our production environment is in the process of being upgraded to Office 2007, but it hasn't happened yet - still running Office XP in production, and I need to be able to debug an (inherited) VB.Net (VS 2005) app that uses Office Interop against Office XP (10.0) (Excel).

Can I simply download, install, and reference the Office XP PIA's (http://www.microsoft.com/downloads/details.aspx?familyid=C41BD61E-3060-4F71-A6B4-01FEBA508E52) in order to compile an run the app? A previous build has been tested against Office 2007 and it seemed to work with the "old" interop/PIAs.

I have the "old" Interop.Excel, etc., the only reference that is giving me a problem is the Microsoft Office 10.0 Object Model (which says Microsoft Office 12.0 Object Model but has an Exclamation mark in my IDE).

I also found http://www.codeproject.com/KB/office/Compile2003VstoVista2007.aspx (for Office 2003 on a system with 2007) which suggests installing the older version of Office and then massaging the project files in a text editor. While I don't mind using a text editor on the project files, I'd prefer not to install Office XP unless I have to (I have access to it if I do). And I'd prefer to be able to load the project as is (with the "old" reference).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文