我如何在C#中使用Excel [英] How can i use Excel in C#

查看:93
本文介绍了我如何在C#中使用Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的.

我有一个Excel文件,上面有很多公式.
我想知道我可以在C#中使用此公式吗?我想将我的C#链接到此Excel文件中,以使用在此处以Windows窗体键入的公式.

Hi dears.

I have an Excel file and there are many formula on it.
I want to know can i use this formula in c#? i want to link my C# into this Excel file to use formula that typed there, here in my windows form.
Is it possible?

推荐答案

如果您在程序中使用excel并希望获取公式,唯一的方法就是通过Interop Excel.这是一个Microsoft页面,向您显示所有必要的代码:
http://support.microsoft.com/kb/302084 [
If you are using excel in your program and want to get the formulas the only way to go is trough the Interop Excel. Here is a Microsoft page that shows you all the nessesary code:
http://support.microsoft.com/kb/302084[^]


这篇关于我如何在C#中使用Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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