是否可以使用C#在excel工作簿中编写功能 [英] is it possible to use C# to write functionality within an excel workbook

查看:97
本文介绍了是否可以使用C#在excel工作簿中编写功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个excel工作簿,需要从HTTP服务器查询数据。从远程数据库查询不是一个选项。



从我所知道的,我可以使用VB宏联系HTTP服务器并更新工作簿中的单元格。是否可以在C#中执行此操作?感谢您的帮助,




解决方案

您可以使用VSTO为Excel创建文档或应用程序级别的插件。看这里 http://msdn.microsoft.com/en-us/office/hh128771 .aspx


I have an excel workbook which needs to query data from an HTTP server. Query directly from a remote database isn't an option.

From what I know I can use VB macros to contact the HTTP server and update the cells in the workbook. Is it possible to do this in C#? I don't want to additional burden of deploying an extra application.

Thanks for your help.

解决方案

You can use the VSTO to create a document or application level addin to Excel. Look here http://msdn.microsoft.com/en-us/office/hh128771.aspx

这篇关于是否可以使用C#在excel工作簿中编写功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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