vb的趋势 [英] trends in vb

查看:88
本文介绍了vb的趋势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能帮助我使用vb在Windows窗体中创建趋势(折线图).我的数据在excel工作表中.我正在使用VS2008.

在此先感谢.

问候,

Danny

Hi all,

can anybody help me to create a trend (line graph) in a Windows form using vb.my data is in excel sheet.i am using VS2008.

thanks in advance.

regards,

Danny

推荐答案

您有一些选择;

1)使用Office interop直接使用excel工作表并创建excel图表

2)使用Office互操作从Excel工作表中读取数据,并在应用程序中使用MSChart控件创建图表.

3)将Excel工作表中的数据另存为另一种格式,并读入您的应用程序并使用MSChart在您的应用程序中创建图表

4)根据源布局,可以使用与Excel工作表的数据库连接来获取数据,然后创建图表.

在CodeProject或Google中搜索这些区域附近的关键字,这里有很多示例.
You have a few options;

1) Use Office interop to directly work with the excel sheet and create an excel chart

2) Use Office interop to read the data from the excel sheet and create a chart using MSChart control in your app

3) Save the data in your excel sheet out to another format, and read into your app and create the chart in your app with MSChart

4) Depending on the source layout it is possible to use database connection to the excel sheet to get hold of the data and then create the chart.

Search CodeProject or Google for keywords around those areas, there are plenty of example to be had.


这篇关于vb的趋势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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