C#创建Excel图表 [英] C# Creating Excel Chart

查看:95
本文介绍了C#创建Excel图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我的问题很基本,但很关键..

我正在通过c#控制台应用程序生成一张Excel工作表,其中包含一张表和一张图表

该图表是基于表值创建的.

现在出现了问题,就像表中存储的所有值都存储为文本一样.因此图表不是基于表格创建的.
在excel中,一个提示会显示在单元格上"该单元格设置为文本格式"

我检查了:
单元格的数据类型:数字
控制台应用程序中的值:convert.toint32()

如果有解决方案,请回复...
提前谢谢你

让我知道你是否想要2了解更多...

hello guys

my problem is basic but critical..

I am generating one excel sheet through c# console application which contain one table and one chart

the chart is created on the basic of table values.

Now issue is raised like that all the value which are stored in the table are storing as text. so the chart is not created on the basis of table.
in excel one tooltip get displayed on cell ''the cell is formatted as text''

i check :
datatype of cell : number
the values from console app : convert.toint32()

if any1 have solution then reply...
thank u in advance

let me know if u want 2 know more ...

推荐答案

对不起,打扰你的人
一个简单的解决方案在这里


如果您想在Excel工作表单元格中使用整数值,则只需传递convert.toint32(value)

谢谢
sorry guys to bother u
a Simple solution is here


if u want integer value in excel sheet cell then just pass convert.toint32(value)

thanks


请参阅 C#应用程序中的Excel图表 [ ^ ]
C#Excel图表示例 [ ^ ]
C#绘制excel图表 [ ^ ]
Please see Excel Charts in C# Applications[^]
C# excel chart examples[^]
C# draw excel chart[^]


这篇关于C#创建Excel图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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