将mscomctl.ocx引用降级为Word Addin中的旧版本 [英] Downgrade mscomctl.ocx reference to old version in Word Addin

查看:66
本文介绍了将mscomctl.ocx引用降级为Word Addin中的旧版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

症状描述:

我们开发了一个Office插件(DOT文件),我们的很多客户都在使用它。自Microsoft更新MS12-027以来,我们收到了客户关于"隐藏模块中的编译错误"和"无法加载对象的错误报告,因为此机器上没有
"。

Symptom description:
We have developed an Office addin (DOT file) which is in use by a lot of our customers. Since Microsoft update MS12-027, we have received error reports from our clients about 'compile error in hidden module' and 'Could not load an object because it is not available on this machine'.

在某些情况下,删除.EXD文件就足够了,但在其他情况下,我们需要设置对'new'mscomctl.ocx的新引用。在加载了MS12-027更新的计算机上,现在一切正常。

In some cases it was enough to delete the .EXD files, but in other cases we needed to set a new reference to the 'new' mscomctl.ocx. On machines with the MS12-027 update loaded, everything is fine now.

问题是我们的基础AddIns之一。这个AddIn是在微软推出MS12-027的时候广泛开发的。上述解决方案已应用于此AddIn。奇怪的是,这个AddIn不再适用于没有MS12-027的机器
。我们无法强制客户应用MS12-027,因此我们希望在AddIn中"降级"对mscomctl.ocx使用的引用。使它可以在不是最新的机器上再次运行。

The problem is one of our base AddIns. This AddIn was extensively developed around the time of the rollout of MS12-027 by Microsoft. The solutions as stated above have been applied to this AddIn. The strange thing is, that this AddIn no longer works on machines without MS12-027. We cannot force customers to apply MS12-027, so we want to 'downgrade' the used reference to mscomctl.ocx in our AddIn. Making it can work again on machines that are not up-to-date.

有没有办法做到这一点?正常操作不起作用:

Is there a way to do this? The normal actions do not work:


  • 在不是最新的机器上打开AddIn(DOT文件)。
  • 删除参考到mscomctl.ocx。
  • 根据计算机上的旧ms​​comctl.ocx添加一个新的Listview。
  • 编译并转到。

  • Open AddIn (DOT file) on not up-to-date machine.
  • Delete the reference to mscomctl.ocx.
  • Add a new Listview based on the old mscomctl.ocx which is on the machine.
  • Compile and go.

在你甚至做到这一点之前,你已经收到了几个错误(无法加载对象......),所有的ListViews和TreeViews都已经消失了。我还尝试从头开始重新添加所有(listview / treeview)控件,但这不会导致功能完全正常的
AddIn (控件再次起作用,但AddIn中的参数功能不稳定,提供的参数突然变空。由于此前不是问题,我们决定不再进一步讨论这个问题。)

Before you can even do this, you already get several errors (Could not load object...) and all ListViews and TreeViews are already gone. I've also tried to re-add all the (listview/treeview) controls from scratch, but this does not result in an fully functioning AddIn. (The controls worked again, but functions with parameters in the AddIn were not stable, supplied arguments were suddenly empty. Since this was not a problem previously, we have decided not to persue this further).

环境:带有和不带MS12-027的Word 2003 / Word2007 / Word2010。

最近的任何相关配置变更: MS12-027。

任何其他信息。这很重要为了使我们的工作保持最新的AddIn版本,我们希望在没有MS12-027的机器上使用该版本。

Environment: Word 2003/Word2007/Word2010 with and without MS12-027.
Any recent relevant configuration change(s): MS12-027.
Any additional information. It is important to keep our work from our latest AddIn version, we want to make this version work on machines without MS12-027.

推荐答案

你好ronald75,

Hi ronald75,

请告诉你我的代码片段,以便我能重现你的问题。

Wold you please show your snippet so that I can reproduce your issue.

最好的问候,

TX


这篇关于将mscomctl.ocx引用降级为Word Addin中的旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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