Functions in Pocket.dll

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Glynn
Newbie
Newbie
Posts: 14
Joined: Tue Apr 08, 2003 4:00 am

Functions in Pocket.dll

Post by Glynn » Tue Oct 26, 2004 7:08 am

When trying to use a function in pocket.dll it throws an 'Invalid Cast Exception' when the function is assigned to the function property of a bar.

The exact same code works fine when copied into a Windows form project.

Are functions supported in Pocket and if so how do you implement them?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Fri Oct 29, 2004 10:01 am

Hi Bernard,
Are functions supported in Pocket and if so how do you implement them?
Modifying the demo under:
C:\Program Files\Steema Software\TeeChart for .NET v1\Examples\Compact Framework

You can do:

Code: Select all

 // Chart Title
      tChart1.Header.Text="TeeChart PocketPC";

      // Create horizontal bar series
      horizBar1=new Steema.TeeChart.Styles.Line();
      Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line();
      Steema.TeeChart.Functions.Average average = new Steema.TeeChart.Functions.Average();
      
      line2.Function = average;
      line2.DataSource = horizBar1;

      horizBar1.FillSampleValues();
      horizBar1.ColorEach=true;
      tChart1.Series.Add(horizBar1);
      tChart1.Series.Add(line2);
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply