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.
TeeChart .NET v1 with Visual Studio 2010
Re: TeeChart .NET v1 with Visual Studio 2010
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
Please, if it not solve your problem let me know.
I hope will helps.
Thanks,
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();
}
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 |
Instructions - How to post in this forum |
Re: TeeChart .NET v1 with Visual Studio 2010
Hello Sandra,
Thank you for quick answer.
Thank you for quick answer.