problem of shiffted axes synchronizing two charts

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Feb 01, 2008 12:47 pm

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.
Best Regards,
Narcís Calvet / 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

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Fri Feb 01, 2008 3:22 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Feb 01, 2008 3:28 pm

Hi 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.
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.
"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 ?
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?

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
Image Image Image Image Image Image
Instructions - How to post in this forum

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Fri Feb 01, 2008 4:05 pm

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

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Mon Feb 04, 2008 8:44 am

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);
}


}

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 04, 2008 9:04 am

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.
Best Regards,
Narcís Calvet / 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

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Mon Feb 04, 2008 9:06 am

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

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Mon Feb 04, 2008 9:12 am

Narcis,

How would you like I compile my code to make you a version you can run
"as-is" ? Which version ?
I am on Visual Studio 2005

Anne-Lise

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Mon Feb 04, 2008 10:22 am

Narcis,

I post you a version of my prototype to reproduce the axes problem compiled with 3.2.2894.29191 in VS2005 as yours. I hope you can run it "as is", if not let me know.

Thanks,
Anne-Lise

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 04, 2008 10:40 am

Hi Anne-Lise,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Mon Feb 04, 2008 10:45 am

Sorry, It failed, I re sent you on the news server, as a reply to your last post.
Anne-Lise

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 04, 2008 10:53 am

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.
Best Regards,
Narcís Calvet / 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

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Mon Feb 04, 2008 11:11 am

Hi,

This is done I post you a .zip with the all project.
I also added commented lines making unhandled exception using graphic3D object.

thanks for your help.
Anne-Lise

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 04, 2008 11:52 am

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.
Best Regards,
Narcís Calvet / 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

annelise
Newbie
Newbie
Posts: 28
Joined: Wed Jul 18, 2007 12:00 am
Contact:

Post by annelise » Mon Feb 04, 2008 12:18 pm

Narcis,

Indeed, I have some problem to attach files in the news (My project is 1.2M it seems too big), I tried it again.
I can't more acess to the upLoad page ? Could you send me the complete adress please ?

Thanks,
Anne-Lise

Post Reply