I have recently upgrade Teechart from a two years old version, and I have this error, in a code which runs before the upgrade.
Thanks
GaugeSeriesPointer is not marked as serializable
GaugeSeriesPointer is not marked as serializable
- Attachments
-
- gaugeseriesPointer.png (30.36 KiB) Viewed 7829 times
Re: GaugeSeriesPointer is not marked as serializable
Hello wakeup,
Next code works in correct way for me:
}
Could you check if my code works for you?
Thanks,
Next code works in correct way for me:
Code: Select all
Steema.TeeChart.Styles.Line line1;
Steema.TeeChart.Styles.GaugeSeriesPointer gauge;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
line1 = new Line(tChart1.Chart);
gauge = new GaugeSeriesPointer(tChart1.Chart, line1);
line1.FillSampleValues();
line1.Pointer.Visible = true;
tChart1.Export.Template.Save(@"C:\test.tmp");
line1.GetPointerStyle += line1_GetPointerStyle;
button1.Click += button1_Click;
}
void line1_GetPointerStyle(CustomPoint series, GetPointerStyleEventArgs e)
{
gauge.Draw(line1.CalcXPos(1), line1.CalcYPos(1), Color.Red);
Could you check if my code works for you?
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: GaugeSeriesPointer is not marked as serializable
It runs, but try this example project
http://193.145.251.126/pnp/files/Xmutyz ... chart2.zip
Push button1, and then button2. I get the error in button 2.
Thanks
http://193.145.251.126/pnp/files/Xmutyz ... chart2.zip
Push button1, and then button2. I get the error in button 2.
Thanks
Re: GaugeSeriesPointer is not marked as serializable
Hello wakeup,
Thanks for extra information. I can reproduce this problem, I have added it in bug list report with number [id90]. We will try to fix it to upcoming versions of TeeChartfor.Net. Remember you can follow the status of the bug in this link.
On the other hand, could you tell us in which version it works fine for you?
Thanks,
Thanks for extra information. I can reproduce this problem, I have added it in bug list report with number [id90]. We will try to fix it to upcoming versions of TeeChartfor.Net. Remember you can follow the status of the bug in this link.
On the other hand, could you tell us in which version it works fine for you?
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: GaugeSeriesPointer is not marked as serializable
My previous version was
TeeChartNET2010VSNET2010_4.0.2010.13053.exe
TeeChartNET2010VSNET2010_4.0.2010.13053.exe
Re: GaugeSeriesPointer is not marked as serializable
Hi wakeup,
Many thanks.
Many 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 |