Page 1 of 1

PreviewPanel issue

Posted: Tue Feb 09, 2010 7:18 am
by 9525858
I am using vs 2008 and Teechart7 activex. I am getting following error in my project

Cannot implicitly convert type 'AxTeeChart.AxTChart' to 'TeeChart.TChart'. An explicit conversion exists (are you missing a cast?)

code which giving this error-
axTeePreviewPanel1.AddChart(PrintCharts);

Re: PreviewPanel issue

Posted: Tue Feb 09, 2010 9:58 am
by narcis
Hi amit,

Try using ChartLink, for example:

Code: Select all

			axTeePreviewPanel1.ChartLink = axTChart1.ChartLink;

Re: PreviewPanel issue

Posted: Wed Feb 10, 2010 6:49 am
by 9525858
thanx :) ...It's worked for me..