使用C#创建Excel加载项 [英] Creating add-in for Excel using C#
问题描述
C#组件将是excel加载项。如何为这个插件创建安装程序,这样我只需要给安装程序给用户安装加载项在客户端的机器。用户不需要执行任何其他步骤,如注册C#dll。
您将需要创建一个新的Visual Studio项目的类型Excel 2007加载项(或Excel 2003加载项)。可以在以下位置找到此选项(在Visual Studio 2008中):
新建项目对话框 - >项目类型 - > Visual C# - >办公室
此加载项需要安装在目标机器上。
加载项将能够挂接到Excel对象模型中,因此可以访问任何加载的电子表格等。
加载项也可以将按钮添加到Excel工具栏/功能区。
I want to use C# class methods in Excel. Can anybody guid me how to do it ? The C# component will be excel add-in. How to create setup for this addin, so that I just need to give setup to user which will install add-in at client's machine. User should not need to do any other steps like registering the C# dll.
You will need to create a new Visual Studio project of type Excel 2007 Add-In (or Excel 2003 Add-In). The option for this can be found (in Visual Studio 2008) at:
New Project dialog -> Project types -> Visual C# -> Office
This Add-In will need to be installed on the target machine(s).
The Add-In will be able to hook into the Excel object model and therefore access any loaded spreadsheets etc.
The Add-In will also be able to add buttons to the Excel toolbar/ribbon.
这篇关于使用C#创建Excel加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!