Installing TQRChart in C++ Builder 2006
Installing TQRChart in C++ Builder 2006
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Tom,
Which is the exact error message you get?
Thanks in advance.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
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:
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?
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
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:
Presumably these steps are redundant since QuickReport doesn't ship with BDS 2006.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.
I opened the package Tee7QR4D10.dpk, and set to Rebuild As Needed.4) Open Delphi 7.
5) Next, close all projects. Then go to the "File->Open project" menu and pick the TeeQR77.dpk package.
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.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".
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?
I opened DclTee7QR4D10.dpk, and set to Rebuild As Needed. It compiled fine (again I replaced DclTee710.dcp with DclTeePro710.dcp).7) Now click the "Compile" button. The package should compile correctly. If you receive errors, see "TroubleShooting" below.
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 couldn't find any .dcu or .res files. Is this correct?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 get the folloing error: "Cannot load package 'QR4RunD2006.' It contains unit 'LZW,'which is also contained in package 'QR4RunC2006'.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.
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
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
Where do I find the TQRChart header file for C++Builder 2006?
Thanks
Tom Hatfield
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;
Thanks
Tom Hatfield
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |