TeeChart .NET v1 with Visual Studio 2010

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
inea
Newbie
Newbie
Posts: 11
Joined: Fri May 13, 2005 4:00 am

TeeChart .NET v1 with Visual Studio 2010

Post by inea » Thu Dec 23, 2010 11:44 am

Hello,

I 'm heaving a problem about TeeChart .NET v1 with Visual Studio 2010.

From my toolbox I add TChart in WinForm. Automatic were added References and licences.licx.
And when I run my application, error is shown. Error: Unable to resolve type 'Steema.TeeChart.TChart, TChart, Version=1.1.1879... , Culture=natural, PublicKeyToken=.... File: licences.licx ,....

I 've tried implements some resolutions on this forum, but nothing is working.

What Can I do?

Thank you for answer.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TeeChart .NET v1 with Visual Studio 2010

Post by Sandra » Thu Dec 23, 2010 12:49 pm

Hello inea,

If you want use TeeChart v1 in VS2010 you need follow next steps:
1.- Change TragetFramework of your project from 4.0 to 2.0.
2.- Add in References TeeChart.dll
3.- Commented all dlls there aren't in .Net Framework 2.0.
4.- Check if next code works for you

Code: Select all

public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        private Steema.TeeChart.Styles.Line line1, line2;
        Steema.TeeChart.TChart tChart1;
       // Steema.TeeChart.ChartController ChartController;
        private void InitializeChart()
        {
           this.tChart1 = new Steema.TeeChart.TChart();
          // this.ChartController = new Steema.TeeChart.ChartController();
            this.Controls.Add(tChart1);
            //this.Controls.Add(ChartController);
            this.tChart1.Left = 100;
            this.tChart1.Top = 50;
            //ChartController.Chart = tChart1;
            tChart1.Aspect.View3D = false;
            line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            line2 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            Random rnd = new Random();
            for (int i = 0; i < 10; i++)
            {
                line1.Add(i, rnd.Next(10));
                line2.Add(i, rnd.Next(10));
              
            }
            tChart1.Axes.Left.MinimumOffset = 50;
            tChart1.Axes.Left.MaximumOffset = 70;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Steema.TeeChart.Editors.AboutBox.ShowModal();
        }
Please, if it not solve your problem let me know.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

inea
Newbie
Newbie
Posts: 11
Joined: Fri May 13, 2005 4:00 am

Re: TeeChart .NET v1 with Visual Studio 2010

Post by inea » Thu Dec 23, 2010 1:59 pm

Hello Sandra,

Thank you for quick answer.

Post Reply