Page 1 of 1

Copy chart and all data to new object

Posted: Thu Mar 16, 2006 7:09 pm
by 8120717
HI,

I am working a large app with a ton of tchart objects on the main form. I am not allowing the main form to be sizeable at the moment. This results in small charts with no good way to zoom or see more detail. Instead, so that user can see more detail, they will dblclick a chart and a new form will popup (sizeable) with a copy of that chart docked to the form extents.

I've tried the clone and assign series but I cannot seem to get a complete copy of the chart as displayed on originating form. I initially set the new tchart object = the source object but not everything comes along.

How do I accomplish this?

Thanks in advance.

Posted: Fri Mar 17, 2006 8:57 am
by narcis
Hi Michael,

Have you tried exporting the chart to a .ten (TeeChart for .NET native file format) file or a memory stream and then import it to the new chart? For more information on how to do that please read the importing and exporting tutorials available at TeeChart's program group.

Posted: Mon Mar 20, 2006 3:55 pm
by 8120717
Thanks very much. Works like a champ.