Page 1 of 1

Re: How to use TDBChart

Posted: Wed Jan 16, 2008 3:14 am
by 9243843
Hi,

I am user of TeeChartPro v7 in BDS2006.

But I am currently working on C++Builder6, which has only two built-in componments TChart and TDBChart. I want use TDBChart to display data in Access database, this is my 1st time to do such job. My questions are

(1) Is TDBChart componment enough to support a simply function such as display data in Access database ?
(2) Is there any example or tutorial to point where the entry door is ?
(3) I am trying to compile TeeChartPro v7.08 in C++Builder2006, and the compiler results 3 errors(see below):

the project Tee7New.bcbprj is under
C:\Program Files\Steema Software\TeeChart 7.08 for Delphi 2006\Examples\Features C++

The compiling errors are:

[C++ Error] Main.cpp(280): E2015 Ambiguity between '_fastcall Tecanvas::TTeeCanvas::TextWidth(const System::AnsiString)' and '_fastcall Tecanvas::TTeeCanvas::TextWidth(const System::WideString)'
Full parser context
Main.cpp(259): parsing: void _fastcall TTee7Form::Draw3D1AfterDraw(System::TObject *)
[C++ Error] Main.cpp(334): E2288 Pointer to structure required on left side of -> or ->*
Full parser context
Main.cpp(331): parsing: bool _fastcall FindItem(TTreeView *,AnsiString)
[C++ Error] Main.cpp(564): E2085 Invalid pointer addition
Full parser context
Main.cpp(559): parsing: void _fastcall TTee7Form::BSupportClick(TObject *)

Thanks and Kind regards

Daniel

Posted: Wed Jan 16, 2008 10:32 am
by narcis
Hi Daniel,

Please find below the answers to your questions:

1. Yes, I think so.
2. You should look at Pro version tutorials available at TeeChart's program group, specially Tutorial 8 - Database access.
3. This are most likely syntactical problems. Could you please send us a simple example project we can run "as-is" to reproduce the problems here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.

Posted: Thu Jan 31, 2008 1:09 pm
by 9243843
Hi Narcis,

I posted it, and also answer following question,

(1) Can TDBChart access MS SQL 2005 server database ? thanks

Daniel

Posted: Thu Jan 31, 2008 1:21 pm
by 9243843
Sorry Narcis,

Posting failed ! because the zip file is too large. Actually it is the demo in \Feature C++, after installation, in my PC, it is under

C:\Program Files\Steema Software\TeeChart 7.08 for Delphi 2006\Examples\Features C++,

I open the project with BDS2006 and compile then generates 3 errors. You should repeat these errors. Thanks

Daniel

Posted: Mon Feb 04, 2008 11:43 am
by yeray
Hi Daniel,

I've tested Tee7New.bpr with latest TeeChart v7 version (TeeChart7.12Delphi2006.exe) and this works fine here. Could you please download and install it?

Note that to be able to compile Tee7New.bpr project, you will need to add two files (TeeExpForm.pas and TeeDesignOptions.pas) to the project. I've sent them to your mail.