Page 1 of 1

TeeChart for Compact Framework and Delphi Prism

Posted: Mon Oct 26, 2009 8:44 pm
by 10547999
Hello,
we are currently testing Delphi prism from RAD Studio 2010 with compact framework as target on a windows mobile 6.0 PDA. The first program with database worked fine but we have sever problems to get your TChart components working, too. We know we have to install your TeeChart for .NET v3 EVALUATION from September 2009 and have to create the TChart by runtime with TeeChart.Pocket as Reference, like in your compact framework demo for c++

Can you help us?

You’re sincerely


Willi

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Wed Oct 28, 2009 1:42 pm
by 10050769
Hello Willi,

I could make it works TChart using Compact Framework and Delphi prism. I have added a simple example that works using last version 3 of TeeChart .Net and Delphi prism.Please check this works fine.

For execute the project you could need add TeeChart.Pocket.dll(TeeChart.Net for Compact Framework). On the other hand, I found one link that explain as you do for make a project using Delphi prism anb Compact Framework, please see next video. Also, I recomend see next example of Delphi code in .Net project that found in link.

Finally,If you don't serve that information,you could say exactly if your problem in the application because we can reproduce the problem here?


I hope will helps.

Thanks,

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Wed Oct 28, 2009 5:58 pm
by 10547999
Hello,
I have no problems with Delphi Prism, Compact Framework and database. This works (i have my knowledge from the same video). But TeeChart does not work. And I have added your TeeChart.Pocket.dll. Therefore i can compile your sample code. But if I start the program on a real world windows mobile 6 PDA from HP your code crash but the database code worked.

I send you my code.

You’re sincerely

Willi Ebert

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Fri Oct 30, 2009 12:15 pm
by 10050769
Hello willi,

I couldn't reproduce your problem, here we could start the program and tChart1 appears and not crash. Please could say what is your TeeChart.Net version? On the other hand could you explain what we exactly have to do to reproduce problem here?

Thanks,

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Fri Oct 30, 2009 1:26 pm
by 10547999
Hello,
As I mentioned in the first post we use TeeChart for .NET v3 EVALUATION from September 2009. To reproduce the error: have you used a real world windows mobile PDA 6 (in German) with NETCFv35.ppc.armv4.cab (compact framework 3.5) and sqlce.ppc.wce5.armv4i.CAB, sqlce.dev.DE.ppc.wce5.armv4i.CAB and sqlce.repl.ppc.wce5.armv4i.CAB (ms sql server compact 3.5) or do you use an emulator? And I have tolled you that your program crashed in the same way as my program. (see screen shots).
Please can you tell us what else do you want to know?

You’re sincerely

Willi Ebert

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Mon Nov 02, 2009 10:30 am
by 10050769
Hello Will,
To reproduce the error: have you used a real world windows mobile PDA 6 (in German) with NETCFv35.ppc.armv4.cab (compact framework 3.5) and sqlce.ppc.wce5.armv4i.CAB, sqlce.dev.DE.ppc.wce5.armv4i.CAB and sqlce.repl.ppc.wce5.armv4i.CAB (ms sql server compact 3.5) or do you use an emulator?
I could use emulator WM 6.1 and the projects works fine.

On the other hand, I make a simple project using C# and Pocket PC (Visual C#/Smart Device/Pocket Pc 2003) with version 4 to TeeChartFor .Net. We need that you try reproduce this using C#, because we must be sure that the problem ocurrs only in Delphi Prims.

Please see next code and check that this works fine in your real PDA

Code: Select all

namespace Proves_CF
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        Steema.TeeChart.Styles.Bar bar1;
        private void InitializeChart()
        {

            TChart tChart1 = new TChart();
            this.Controls.Add(tChart1);
            bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
            bar1.FillSampleValues(10);

                    
        }

    }
}
Also, You could check Demo Example of Compact Framework TeeChart .Net version 4 works correctly in your PDA. I recommend to test this programs using last version of Teechart .Net (version 4) too.


Thanks,

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Mon Nov 02, 2009 1:11 pm
by 10547999
Hello,
we don't have any C# compiler for .net, sorry. Please send me the compiled program.
You’re sincerely

Willi Ebert

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Tue Nov 03, 2009 9:18 am
by 10050769
Hello Willi,

I have added program .exe in the post. I have compiled this using last version4 Eval, so tu run the exe you may have to download version4 Eval TeeChartFor.Net. Then, only you add TeeChart.Pocket.dll the same folder where is application compiled, and run application.



Thanks,

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Tue Nov 03, 2009 11:54 am
by 10547999
Hello,
the key was to copy the TeeChart.Pocket.dll in the same folder as the program on the PDA. This was not mentioned in the docs. Now all samples worked. Thank you very much.

You're sincerely

Willi Ebert

Re: TeeChart for Compact Framework and Delphi Prism

Posted: Tue Nov 03, 2009 11:57 am
by narcis
Hi Willi,

We are glad to hear your problem was solved. In Tutorial 17 - Designtime, Runtime and License Requirements, available at TeeChart's program group, it's mentioned that you need to include TeeChart assemblies with your applications.