将VSTO功能暴露给本地管理员的VBA [英] Expose VSTO functionality to VBA w/o local admin

查看:231
本文介绍了将VSTO功能暴露给本地管理员的VBA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将Dotnet VSTO Excel加载项中的某些功能暴露于VBA的最佳方式是什么,而不要求用户成为本地管理员(即没有COM注册, no HttpListener )?是否可以使用VBA中的Microsoft Message Queues?

What would be the best way to expose certain functionality in a Dotnet VSTO Excel add-in to VBA, without requiring the user to be a local administrator (i.e. no COM registration, no HttpListener)? Would it be possible to use Microsoft Message Queues from VBA?

推荐答案

如果我可以将您的问题解释为如何将.Net程序集中的功能暴露给Excel而无需COM注册,那么一个很好的解决方案就是使用Excel的XLL界面。
基本上一个部署一个xll垫片和一个相关的.Net dll。当xll加载时,它反映在dll上并将其中的功能公开到Excel中。

If I may interpret your question as broadly as "How do I expose functionality in a .Net assembly to Excel without COM registration" then an excellent solution is to use Excel's XLL interface. Basically one deploys an xll shim and an associated .Net dll. When the xll is loaded it reflects over the dll and exposes the functions therein to Excel.

可以在这里找到一个开源实现 http://exceldna.typepad.com/blog/2006/01/introducing_exc.html

An open source implementation can be found here http://exceldna.typepad.com/blog/2006/01/introducing_exc.html

一个商业,封闭的来源,但更多的功能丰富一个这里
http://www.managedxll.com/

A commercial, closed source, but more feature rich one here http://www.managedxll.com/

这篇关于将VSTO功能暴露给本地管理员的VBA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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