problem of shiffted axes synchronizing two charts
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Anne-Lise,
Ok, I've built the project in VS2005 using 3.2.2894.29190. Also noticed that 3.2.2894.29190 was for VS2003, as you can see in TeeChart for .NET v3 release notes, so I also compiled the project in VS2005 using 3.2.2894.29191.
Please let me know how it works for you.
Thanks in advance.
Ok, I've built the project in VS2005 using 3.2.2894.29190. Also noticed that 3.2.2894.29190 was for VS2003, as you can see in TeeChart for .NET v3 release notes, so I also compiled the project in VS2005 using 3.2.2894.29191.
Please let me know how it works for you.
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
Thanks Narcis,
I get the last version of your application using 3.2.2894.29191.
I can execute it and for the moment I did not reproduce the problem.
But even if we compile with Visual studio 2005, we use the version:
3.2.2894.29190 in our software because trying to use
3.2.2894.29191 we have some problem with function
Steema.TeeChart.Drawing.Graphics3D.TextOut() which give an exception:
"Argument exception was unhandled", "Parameter is not valid", but we don't understand why, and with the version 3.2.2894.29190 we don't have the problem, perhaps you could help us on this point ?
Anne-Lise
I get the last version of your application using 3.2.2894.29191.
I can execute it and for the moment I did not reproduce the problem.
But even if we compile with Visual studio 2005, we use the version:
3.2.2894.29190 in our software because trying to use
3.2.2894.29191 we have some problem with function
Steema.TeeChart.Drawing.Graphics3D.TextOut() which give an exception:
"Argument exception was unhandled", "Parameter is not valid", but we don't understand why, and with the version 3.2.2894.29190 we don't have the problem, perhaps you could help us on this point ?
Anne-Lise
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Anne-Lise,
Thanks in advance.
Ok, then you may expect this being solved in latest TeeChart for .NET v3 release or the next one. Actually I was using our internal sources and hard coding the build number so that the application could be used at your end.I get the last version of your application using 3.2.2894.29191.
I can execute it and for the moment I did not reproduce the problem.
Can you reproduce it using latest TeeChart for .NET ve release? Could you please give us some information or better a sample project we can run "as-is" so that we can reproduce the problem here?"Argument exception was unhandled", "Parameter is not valid", but we don't understand why, and with the version 3.2.2894.29190 we don't have the problem, perhaps you could help us on this point ?
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
Narcis,
I try to download again the last TeeChart version + pluggin for license the version for visual studio 5: 3.2.2945.19737
I still have the problem in my application calling
Steema.TeeChart.Drawing.Graphics3D.TextOut() I have an exception, and if I comment this line, I have another unhandled exception that make crash our application when trying to display the chart (big red cross appears when exception occurs).
I thing there is something with Steema.TeeChart.Drawing.Graphics3D ???
I have not yet a prototype to reproduce the problem...I will try to make one.
Do you have an idea of the problem ?
Thanks,
Anne-Lise
I try to download again the last TeeChart version + pluggin for license the version for visual studio 5: 3.2.2945.19737
I still have the problem in my application calling
Steema.TeeChart.Drawing.Graphics3D.TextOut() I have an exception, and if I comment this line, I have another unhandled exception that make crash our application when trying to display the chart (big red cross appears when exception occurs).
I thing there is something with Steema.TeeChart.Drawing.Graphics3D ???
I have not yet a prototype to reproduce the problem...I will try to make one.
Do you have an idea of the problem ?
Thanks,
Anne-Lise
Hi Narcis,
Did you write something different from my code (concerning left axes alignment ?) in your prototype:
WindowsApplication1_3.2.2894.29191.exe ?
Because with the same version as yours 3.2.2894.29191 for visual 2005, I reproduce the bug with my prototype and not with yours...
Could you also tell me if there is a property on the TChart to bloc the left axes position (and not to change its position when refreshed depending on the scaling)
Thanks a lot,
Anne-Lise
// Here is my code:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
for (int index = 1; index < 100; index++)
{
fastLine1.Add(index, index);
fastLine2.Add(index, index);
}
}
private void tChart1_Zoomed(object sender, EventArgs e)
{
Synchronize(tChart1);
}
private void Synchronize(Steema.TeeChart.TChart chart)
{
Bitmap bmp = chart.Bitmap;
if(chart==tChart1)
{
tChart2.Axes.Left.SetMinMax(tChart1.Axes.Left.Minimum, tChart1.Axes.Left.Maximum);
tChart2.Axes.Bottom.SetMinMax(tChart1.Axes.Bottom.Minimum, tChart1.Axes.Bottom.Maximum);
}
else
{
tChart1.Axes.Left.SetMinMax(tChart2.Axes.Left.Minimum, tChart2.Axes.Left.Maximum);
tChart1.Axes.Bottom.SetMinMax(tChart2.Axes.Bottom.Minimum, tChart2.Axes.Bottom.Maximum);
}
}
private void tChart2_Zoomed(object sender, EventArgs e)
{
Synchronize(tChart2);
}
}
Did you write something different from my code (concerning left axes alignment ?) in your prototype:
WindowsApplication1_3.2.2894.29191.exe ?
Because with the same version as yours 3.2.2894.29191 for visual 2005, I reproduce the bug with my prototype and not with yours...
Could you also tell me if there is a property on the TChart to bloc the left axes position (and not to change its position when refreshed depending on the scaling)
Thanks a lot,
Anne-Lise
// Here is my code:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
for (int index = 1; index < 100; index++)
{
fastLine1.Add(index, index);
fastLine2.Add(index, index);
}
}
private void tChart1_Zoomed(object sender, EventArgs e)
{
Synchronize(tChart1);
}
private void Synchronize(Steema.TeeChart.TChart chart)
{
Bitmap bmp = chart.Bitmap;
if(chart==tChart1)
{
tChart2.Axes.Left.SetMinMax(tChart1.Axes.Left.Minimum, tChart1.Axes.Left.Maximum);
tChart2.Axes.Bottom.SetMinMax(tChart1.Axes.Bottom.Minimum, tChart1.Axes.Bottom.Maximum);
}
else
{
tChart1.Axes.Left.SetMinMax(tChart2.Axes.Left.Minimum, tChart2.Axes.Left.Maximum);
tChart1.Axes.Bottom.SetMinMax(tChart2.Axes.Bottom.Minimum, tChart2.Axes.Bottom.Maximum);
}
}
private void tChart2_Zoomed(object sender, EventArgs e)
{
Synchronize(tChart2);
}
}
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi annelise,
No, I'm still unable to reproduce the issue here using the code I posted before and using the very same build version as you. Would you be so kind to send us a simple example project we can run "as-is" to reproduce the issue here and then I'd try reproducing it with latest version too?
Thanks in advance.
No, I'm still unable to reproduce the issue here using the code I posted before and using the very same build version as you. Would you be so kind to send us a simple example project we can run "as-is" to reproduce the issue here and then I'd try reproducing it with latest version too?
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
Narcis,
Concerning the problem we have with Steema.TeeChart.Drawing.Graphics3D.TextOut() ...
I had two lines in my previous prototype in the form constructor:
public Form1()
{
InitializeComponent();
for (int index = 1; index < 100; index++)
{
fastLine1.Add(index, index);
fastLine2.Add(index, index);
}
tChart1.Graphics3D.TextOut(10, 10, "chart1");
tChart2.Graphics3D.TextOut(10, 10, "chart2");
}
And I have systematically an axception:
"NullReferenceException" was unhandled...
I do not understand why...
Thank you for your help,
Anne-Lise
Concerning the problem we have with Steema.TeeChart.Drawing.Graphics3D.TextOut() ...
I had two lines in my previous prototype in the form constructor:
public Form1()
{
InitializeComponent();
for (int index = 1; index < 100; index++)
{
fastLine1.Add(index, index);
fastLine2.Add(index, index);
}
tChart1.Graphics3D.TextOut(10, 10, "chart1");
tChart2.Graphics3D.TextOut(10, 10, "chart2");
}
And I have systematically an axception:
"NullReferenceException" was unhandled...
I do not understand why...
Thank you for your help,
Anne-Lise
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Anne-Lise,
Sorry but I can' find your project, where did you posted it? Could it be sent/posted successfully?
Thanks in advance.
Sorry but I can' find your project, where did you posted it? Could it be sent/posted successfully?
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Anne-Lise,
Thanks, I've found the attachment now. However would be very helpful if you sent us full project's sources instead of its .exe so that we can build and debug it here.
Thanks in advance.
Thanks, I've found the attachment now. However would be very helpful if you sent us full project's sources instead of its .exe so that we can build and debug it here.
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Anne-Lise,
Thanks for your feedback but I can't find the project again. Could you please check if it was sent successfully? If you are having problems posting files to the newsgroups you may be interested in trying to use the upload page.
Thanks in advance.
Thanks for your feedback but I can't find the project again. Could you please check if it was sent successfully? If you are having problems posting files to the newsgroups you may be interested in trying to use the upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / 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 |