首页 新闻 会员 周边

asp.net 在excel绘图(如线形图,圆柱图,圆饼图)

0
悬赏园豆:50 [已关闭问题] 关闭于 2010-01-29 12:03

asp.net 程序 查询出数据。 然后调用excel 里面的绘图。把数据进行绘图!

注:绘图的结果在execl里面呈现!

 

麻烦各位帮忙想想方法!

白了头发就是代价的主页 白了头发就是代价 | 初学一级 | 园豆:7
提问于:2010-01-15 15:57
< >
分享
所有回答(5)
0

不要用excel的插件乐,画出来没有意思的,不好看,

使用.NET 3.5 SP1的MSChart吧,你找一下,很好用的,很强大的

Virus-BeautyCode | 园豆:1619 (小虾三级) | 2010-01-15 21:01
0

可以考虑使用GDI自己绘图的

woody.wu | 园豆:3621 (老鸟四级) | 2010-01-16 11:39
0

http://www.cnblogs.com/zhouxin/archive/2009/09/25/1573904.html你看看,里面有填充数据图的。

 #region "填充chart"
 80                Chart chart = myExcel.Charts.Add(Type.Missing, wsheet, Type.Missing, Type.Missing) as Chart;
 81                chart.ChartType = Common.xlChartType;
 82                Range chartrange = wsheet.get_Range(wsheet.Cells[41], wsheet.Cells[4 + customs.Count, 1 + weaks.Count()]);
 83                chart.SetSourceData(chartrange, XlRowCol.xlRows);
 84                chart.HasTitle = true;
 85                chart.ChartTitle.Text = "Detail Report -- Return";
 86                chart.Location(XlChartLocation.xlLocationAsObject, plant);
 87                float top = 200;
 88                float.TryParse(wsheet.get_Range(wsheet.Cells[11], wsheet.Cells[11]).Top.ToString(), out top);
 89                wsheet.Shapes.Item(1).IncrementTop(top );
 90                wsheet.Shapes.Item(1).IncrementLeft(-450);
 91                //wsheet.Shapes.Item(1).ScaleHeight(200,Type.Missing,Type.Missing);
 92                // wsheet.Shapes.Item(1).ScaleWidth(300, Type.Missing, Type.Missing);
 93                #endregion

天天不在 | 园豆:926 (小虾三级) | 2010-01-17 17:16
0

用MSChart吧,很强大的!

小胆粗心 | 园豆:300 (菜鸟二级) | 2010-01-19 18:08
0

 Aspose.Cells 控件可以解决你的问题   ,去下载看看把。。。。。。。

redstarter | 园豆:205 (菜鸟二级) | 2010-01-22 09:19
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册