Page 1 of 1

Copy Chart

Posted: Wed Apr 29, 2009 1:04 pm
by 13048623
I am creating a C# app. in visual Studio 2005. I need to have 4 to 6 charts on the main form. I can create a complete working chart with no problem, however I can't manage to copy that chart in order to create the rest. I have done this with no problems at all in Borland Builder for years. In this case, If I click on the completed chart, select copy and then paste, I get a new chart with 1 or more missing Series and the chart that I copied from loses its Series. In other words BOTH charts are totally screwed up. Is this not the way to copy a chart? Is there a "proper" way? It is a real pain to manually create each chart to be exactly like the first one. I have tried copying sections of the Designer.cs file, but that usually ends up in disaster.

Any help is appreciated.

Kev

Posted: Wed Apr 29, 2009 3:03 pm
by narcis
Hi Kev,

The easiest and most reliable way I can think of to do that in .NET is right-clicking on a chart, selecting "Export Chart" and export it as a native template file (*.ten). Then you do the same with the charts you want to load this template in selecting "Import Chart" instead.

Hope this helps!