Re: How to use TDBChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
nileiqi
Newbie
Newbie
Posts: 13
Joined: Fri Jan 12, 2007 12:00 am

Re: How to use TDBChart

Post by nileiqi » Wed Jan 16, 2008 3:14 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jan 16, 2008 10:32 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nileiqi
Newbie
Newbie
Posts: 13
Joined: Fri Jan 12, 2007 12:00 am

Post by nileiqi » Thu Jan 31, 2008 1:09 pm

Hi Narcis,

I posted it, and also answer following question,

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

Daniel

nileiqi
Newbie
Newbie
Posts: 13
Joined: Fri Jan 12, 2007 12:00 am

Post by nileiqi » Thu Jan 31, 2008 1:21 pm

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

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Feb 04, 2008 11:43 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply