使用Visual Studio 2005的Excel 2007图表 [英] Excel 2007 Charts Using Visual Studio 2005

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

问题描述

大家好,
我试图将一些数据导出到Excel 2007工作簿中,然后使用这些数据的某些部分创建一些图表.我正在运行Visual Studio 2005和C#2.0.
我使用图表对象的 SeriesCollection 将比较系列添加到每个图表.
在我自己的计算机上,一切正常,但是当我尝试从其他计算机上运行程序时,出现此问题:
数据可以很好地导出,但是在创建图表时,仅显示我添加到图表 SeriesCollection 中的最后一个 Series 对象;如前所述,我使用数据的三列在图表中创建三条线,但仅出现一条线.
谁能帮我吗?
在此先感谢...

Hi everybody,
I am trying to export some data to an Excel 2007 workbook and then create some charts using some parts of this data. I am running Visual Studio 2005 and C# 2.0.
I use the Chart object''s SeriesCollection to add my comparing series to each chart.
On my own computer, everything works fine, but when I try to run my program from other computers, I have this problem:
The data is exported fine, but when creating charts, only the last Series object I added to the SeriesCollection of my Chart is being displayed; as I mentioned before, I use three columns of my data to create three lines in my chart, but only one line appears.
Can anyone help me?
Thanks in advance...

推荐答案

请检查此代码项目链接
C#应用程序中的Excel图表 [
Please check this code project link
Excel Charts in C# Applications[^]


这篇关于使用Visual Studio 2005的Excel 2007图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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