Page 1 of 1

Copying a Teechart

Posted: Fri Oct 20, 2006 9:59 am
by 9528399
I have a teechart on Tab1..when I try to copy the teechart onto Tab2..I am missing all the information like piecharts/bars bgcolor,axes etcc everything...I am getting a plain chart copied..How to do this?

teechart on Tab1
http://i11.tinypic.com/4caxl3t.jpg

teechart copied onto Tab2
http://i11.tinypic.com/2epr2tx.jpg

Thanks in advance

Posted: Fri Oct 20, 2006 10:21 am
by narcis
Hi vijay,

You can export the chart to a native .ten file and import it in the other tab. For more information on how to import and export charts please read Tutorial 12 - Exporting and Importing Charts. You'll find the tutorials at TeeChart's program group.

Posted: Fri Oct 20, 2006 10:33 am
by 9528399
Thanx for ur reply...but I couldnt find any format .ten when I right click on a chart and export

Posted: Fri Oct 20, 2006 11:33 am
by narcis
Hi vijay,

You should select the "Native" tab in the chart export dialog to export a TeeChart native template file.

Posted: Fri Oct 20, 2006 11:45 am
by 9528399
and while importing it onto a new tab..atfirst I have to create an empty chart and then say import ..right?
Thanx

Posted: Fri Oct 20, 2006 12:00 pm
by narcis
Hi vijay,

Yes, this is what you should do.

Posted: Fri Oct 20, 2006 12:08 pm
by 9528399
Thanx Narcis :D

Posted: Fri Oct 20, 2006 1:00 pm
by 9528399
For example I had 2 lines and a bar on a chart on Tab1 and when I copied onto another tab the way you suggested...I see the same image,but no lines and bar :(

Posted: Fri Oct 20, 2006 1:55 pm
by narcis
Hi vijay,

Have you checked the "include series data" checkbox when exporting the chart?

Posted: Fri Oct 20, 2006 2:03 pm
by 9528399
narcis wrote:Hi vijay,

Have you checked the "include series data" checkbox when exporting the chart?
I did..it looks the same , as it is copied...but I cant use
line1->Add(...) on this new tab
but when i right click on chart on new tab, in properties there is line1

Posted: Fri Oct 20, 2006 2:52 pm
by narcis
Hi vijay,

It works fine here doing this at design-time with latest TeeChart for .NET v2 maintenance release available at the client area. Could you please send us an example we can run "as-is" to reproduce the problem here and let us know which TeeChart version are you using?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.