使用C#读取Excel数据 [英] Excel data read using C#
本文介绍了使用C#读取Excel数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Excel数据使用C#
读取,但价值来自公式
ex:A2单元格值63
=总和(53,5)=> 63
这63个值使用c存储一个局部变量$
我尝试过的事情:
我正在使用这个,值为-2141400(负值即将到来)< br $>
Excel.Worksheet xlWorkSheet;
xlWorkSheet.Cells [1,2] .Value = -2141400
我想要这个xlWorkSheet.Cells [1,2] .Value = 63
可以帮助我们吗?
Excel data Reading using C#
but the value comes under formula
ex: A2 cell value 63
=Sum(54,9) =>63
This 63 value store one local variable using c#
What I have tried:
I'm using this one, the value comes -2141400 (Negative value coming)
Excel.Worksheet xlWorkSheet;
xlWorkSheet.Cells[1, 2].Value = -2141400
I want this xlWorkSheet.Cells[1, 2].Value = 63
can any one help us ?
推荐答案
我建议从这里开始:
在C#中读取Excel文件(示例) [ ^ ]
如何使用C# [ ^ ]
祝你好运!
I'd suggest to start here:
Read Excel File in C# (Example)[^]
How to read an Excel file using C#[^]
Good luck!
这篇关于使用C#读取Excel数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文