Excel 2002中未加载Visual Studio 2008共享COM加载项 [英] Visual studio 2008 Shared COM Addin not loaded in excel 2002

查看:83
本文介绍了Excel 2002中未加载Visual Studio 2008共享COM加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为excel创建了.net-3.5共享COM加载项.
它已在我的计算机上的excel 2002中加载,但在另一台计算机上不起作用.
当我在另一台计算机上运行安装程序项目.msi时,它会注册到HKEY_LOCAL_MACHINE中.我也尝试了每个用户项目的设置,这可以使它进入HKEY_LOCAL_USER.
运行.msi后-我已经使用regasm .dll/tlb注册了.dll:.tlb也.但是我仍然无法在excel 2002中加载加载项.如何使它在另一台计算机上工作?

I have created a .net-3.5 shared COM addin for excel.
It gets loaded in excel 2002 on my machine but it does not work on another machine.
When i run setup project .msi on another machine , it registers into HKEY_LOCAL_MACHINE. I have tried per user project setup as well which makes entry into HKEY_LOCAL_USER.
After running .msi - i have registered .dll using regasm .dll /tlb: .tlb also. But still i cannot load add-in in excel 2002. How do i make it work on another machine?

推荐答案

可能是因为您在另一台计算机上的excel没有地址到3.5
版本
将一个excel.exe.config放在
Excel应用程序(程序文件)根目录

在那把这个配置
It may be becouse your excel in another machine does not address to 3.5
version
Put one excel.exe.config in
Excel application (prog files) root directory

in that put this config
<?xml version="1.0"?>
<configuration>
    <startup>
        <supportedRuntime version="v2.0.50727"/>
    </startup>
</configuration>




在version =& quot; v2.0.50727应该是您的.net版本的情况下,我为.net版本2提供了示例




Where version=&quot;v2.0.50727 should be your .net version, i hv given example for .net version 2


这篇关于Excel 2002中未加载Visual Studio 2008共享COM加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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