The install instructions included with TeeChart distribution are written for
Quick Report 3. If you're using Quick Report v4, the same rules apply, but
with two additional things:
1) In QR v4 package names have changed. So, the Quick Report runtime package
has been changed from qrpt70.bpl to QR4RunD7.bpl. This means you have to
remove the reference to old Quick Report package and replace it with new
version.
2) Set the TQRChart runtime and design time package rebuild option to
"Rebuild as needed".
Here are the step-by-step instructions on how to recompile/reinstall the
TQChart component packages (TeeChart v7, Quick Report v4.03, Delphi 7). The
same rules, but with different package names can be used for older TeeChart
versions:
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.
4) Open Delphi 7.
5) Next, close all projects. Then go to the "File->Open project" menu and
pick the TeeQR77.dpk package.
6) For <b>Quick Report 4</b>, you'll have to remove the reference to the old
<b>Quick Report v3</b> 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".
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.
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
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.
12) Remember to check the "Project->Options->Packages" dialog. The new
package name should be listed in the bottom edit-box.
13) IMPORTANT: Don't forget to copy all newly recompiled *.dcu files (from
the directory where you keep the files TeeQR77.dpk and DclTQR77.dpk) to the
Delphi7Lib directory.
If you're using different Delphi and/or TeeChart versions, then you can
follow the same rules and simply replace package names. For example, if
you're using TeeChart v6 with Delphi 5, then package names will change to :
TeeQR65, DclTQR65, qrpt50.bpl to QR4RunD5.bpl, etc...