Im doing a project with .Net 4.0, Visual Studio 2010 and Visual Basic .Net.
I needed to add a Chart (the new one included by default in .Net 4.0) that represents temperatures evolving with time, so I added the drawing points in the elapsed event of the timer every second.
The graph is doing somewhat ok, but I need another functionality, and this is, every time I stop the timer, save the graph in an excel (.XLS or .XLSX) file. As by default the chart provides with a collection of the type "System.Windows.Forms.DataVisualization.Charting.DataPointCollection", I would like to know if there is a way to create an xml and put the info of those collections in the excel file.
I have looked around but I didn't find any similar example, last thing im thinking about is to use an iterative way to manually write in the excel file, but maybe its too much time consuming as the iteration will be of several thousands seconds.
Any idea or anyone that had a similar problem and can help?
Thanks in advance.