是否可以在运行时设置项目引用? [英] Is it possible to set project references at run-time?

查看:80
本文介绍了是否可以在运行时设置项目引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好




    • 缺少 或者未在Word项目中选择。 :

      • Missing  or not selected in the Word Project. :



      • Microsoft Forms 2.0对象库,

      • Microsoft Forms 2.0 Object Library,

      Microsoft Scripting运行时

      Microsoft Scripting Runtime

      Microsoft Access 14.0对象库

      Microsoft Access 14.0 Object Library


      • Microsoft Word 14.0对象库   

      是否可以根据用户使用的Office版本有条件地设置引用?

      Is it possible to set references conditionally based on which version of Office the user is using?

      Thnks,Lauro

      Thnks, Lauro

      推荐答案

      基本上你需要在Office 2007中编译它然后在Office 2007中使用它/2010/2013/2016. 参考文献应该适当更新。 这是我坚持使用最低版本Office(2010)的一个原因,因为我经常从Excel
      或Excel中引用Word。 我在Office 2007中遇到了一些问题。 您可能需要制作最低版本2010.



      您可以使用延迟绑定以避免此问题。 我发现后期绑定更难以编写应用程序,但它避免了引用问题。
      Basically you need to compile it in Office 2007 and then use it in Office 2007/2010/2013/2016.  The references should update appropriately.  This is one reason I insist on a minimum version of Office (2010) since I often reference Word from Excel or Excel from Word.  I have had a few problems with Office 2007.  You may need to make the minimum version 2010.

      You can use late binding to avoid this problem.  I find late binding harder to write app but it avoids the reference problem.


      这篇关于是否可以在运行时设置项目引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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