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?
Functions in Pocket.dll
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Bernard,
C:\Program Files\Steema Software\TeeChart for .NET v1\Examples\Compact Framework
You can do:
Modifying the demo under:Are functions supported in Pocket and if so how do you implement them?
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/
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/