Installing TQRChart in C++ Builder 2006

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Lucian
Newbie
Newbie
Posts: 6
Joined: Tue Sep 27, 2005 4:00 am
Contact:

Installing TQRChart in C++ Builder 2006

Post by Lucian » Thu Jun 08, 2006 3:15 pm

I'm having problems doing this - all the instructions are for Delphi rather than Builder. For Builder 2006, do you use DclTQR710.dpk and TeeQR710.dpk? (rather than DclTQR7C6.bpk - the one I used for Builder 6)

When recompiling TeeQR710.bpl, how do you include QR4RunC2006.bpl? (the QuickReport for Builder 2006 package). I can recompile fine with QR4RunD2006.dcp but then there's a clash with the installed QR4RunC2006 package and the QR4RunD2006 package used in recompiling the TQRChart.

Regards

Tom Hatfield

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

Post by Narcís » Fri Jun 09, 2006 7:22 am

Hi Tom,

Which is the exact error message you get?

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

Lucian
Newbie
Newbie
Posts: 6
Joined: Tue Sep 27, 2005 4:00 am
Contact:

Post by Lucian » Tue Jun 20, 2006 9:05 am

When I run TeeRecompile.exe, am I supposed to see C++Builder 2006 in the list of installed environments?
I only get C++Builder 6, D2006.NET and D2006.Win32.

Thanks

Tom Hatfield

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

Post by Narcís » Tue Jun 20, 2006 9:15 am

Hi Tom,

No, it only says D2006.Win32 and D2006.NET but also generates TeeChart packages for C++ Builder 2006 except for TQRChart packages that can not be automatically generated as QR standard version is not shipped with BDS 2006.
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

Lucian
Newbie
Newbie
Posts: 6
Joined: Tue Sep 27, 2005 4:00 am
Contact:

Post by Lucian » Tue Jun 20, 2006 9:23 am

Ah, OK.

So I open the Tee7QR4D10.dpk in the Delphi Win 32 identity and compile and install that?
How do I use QR4RunC2006.bpl when rebuilding? It seems to require a delphi QuickReport package.

Thanks

Tom Hatfield

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

Post by Narcís » Tue Jun 20, 2006 9:28 am

Hi Tom,

Please find the instructions here.
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

Lucian
Newbie
Newbie
Posts: 6
Joined: Tue Sep 27, 2005 4:00 am
Contact:

Post by Lucian » Tue Jun 20, 2006 11:20 am

Hi there,

I installed Borland BDS 2006.
I installed QuickReport 4.06 for C++Builder 2006. This adds the packages QR4DesignC2006.bpl and QR4RunC2006.bpl to my 'Design Packages' list.
I then installed TChart 7.07 Full Source Code.
I then followed the instructions you linked to:
1) Go to the "Component->Install packages" and remove the DclTQR77.bpl package from the list (the "Remove" button).

2) Close Delphi 7.

3 (Very important!!). Search all directories in "Delphi search path" list and remove all old TQRChart component files. This is crucial if you want to recompile TQRChart component successfully. Basically, locate and delete teeqr77.dcp, DclTQR77.dcp, TeeQr.dcu, qrtee.dcu, qrteereg.dcu, TeeQR.res, TeeQR77.bpl and DclTQR77.bpl files. Then, and only after you're 100% sure you removed all old TQRChart files, proceed with the next steps. If you're using different a TeeChart version, the same rules apply - remove all old TQRChart component files *before* recompiling TQRChart component packages.
Presumably these steps are redundant since QuickReport doesn't ship with BDS 2006.
4) Open Delphi 7.

5) Next, close all projects. Then go to the "File->Open project" menu and pick the TeeQR77.dpk package.
I opened the package Tee7QR4D10.dpk, and set to Rebuild As Needed.
6) For Quick Report 4, you'll have to remove the reference to the old Quick Report v3 package and replace it with the new runtime package. For Delphi 7, you should remove the qrpt70.dcp file (or similar, depending which QR version you previously used) and replace it with the QR4RunD7.dcp package. Also, set the package build option to "Rebuild as needed".
I then had a problem - I couldn't replace the QuickReport package with my QuickReport package QR4RunC2006.bpl because it requires a .dcp package. So I downloaded the Delphi 2006 QuickReport package QR4RunD2006.dcp. I could then compile Tee7QR4D10.bpl.

One question - I noticed I was getting errors later on unless I replaced DclTee710.dcp with DclTeePro710.dcp. Is this a necessary step of the procedure?
7) Now click the "Compile" button. The package should compile correctly. If you receive errors, see "TroubleShooting" below.

8) Open the DclTQR77.dpk package ("File->Open project" menu).

9) Now click the "Compile" button. The package should compile automatically. If you receive errors, see "TroubleShooting" below.
I opened DclTee7QR4D10.dpk, and set to Rebuild As Needed. It compiled fine (again I replaced DclTee710.dcp with DclTeePro710.dcp).
10) Copy the compiled packages (most probably they were compiled to Delphi7ProjectsBPL directory, but the actual directory might depend on platform settings):

- TeeQR77.bpl to WindowsSystem (or WinNTSystem32) directory
- DclTQR77.bpl to Delphi7Bin directory
- TeeQR77.dcp to Delphi7Lib directory
- DclTQR77.dcp to Delphi7Lib directory
- QRTeeReg.dcu, QRTee.dcu to Delphi7Lib directory
- all *.res files to Delphi7Lib directory
I couldn't find any .dcu or .res files. Is this correct?
11) Go to the "Component->Install packages" press the "Add" button and pick the DclTQR77.bpl package (located in Delphi7Bin directory - if you followed the previous steps. This should install the QRChart component at the QReport component palette.
I get the folloing error: "Cannot load package 'QR4RunD2006.' It contains unit 'LZW,'which is also contained in package 'QR4RunC2006'.
Presumably this is because I installed QuickReport for C++Builder 2006 and for Delphi 2006. How do I get round this? Is it possible to recompile the TQRChart without installing QuickReport for Delphi 2006?

Thanks

Tom Hatfield

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

Post by Narcís » Tue Jun 20, 2006 1:21 pm

Hi Tom,

Your problems may be because your TQRChart packages are referencing Delphi TeeChart packages and not C++ Builder packages. You could try uninstalling QR C++ Builder packages and build TQRChart with QR packages and then check if they work for C++ Builder as well.

TeeChart for BDS 2006 only has one package version, but generates include files for C++ Builder personality.
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

Lucian
Newbie
Newbie
Posts: 6
Joined: Tue Sep 27, 2005 4:00 am
Contact:

Post by Lucian » Tue Jun 20, 2006 3:32 pm

Hi,

That doesn't seem to work - I don't have any QuickReport components or TQRChart on the palette when in C++Builder 2006, only when in Delphi 2006.
When I try to compile my project, I get the error "Type name expected" on the line

Code: Select all

TQRChart *QRChart;
Where do I find the TQRChart header file for C++Builder 2006?

Thanks

Tom Hatfield

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 Jun 21, 2006 7:52 am

Hi Tom,

When building the Delphi packages you also need to generate the C++ Builder files by checking the Generate all C++ Builder files at BDS 2006\Project\Options\Delphi for Win32\Linker.
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

Post Reply