Hi.
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 qrpt50.bpl to QR4RunD5.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 rebuilt option to "Rebuild as needed".
Here are the step-by-step instructions how to recompile/reinstall TQChart component packages (TeeChart v5, Quick Report v4.03, Delphi 5). The same rules, but with different package names can be used for Teechart v6-v7 and other Delphi versions:
1) Go to the "Component->Install packages" and remove the DclTQR55.bpl package from the list (the "Remove" button).
2) Close Delphi 5.
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 teeqr55.dcp, DclTQR55.dcp, TeeQr.dcu, DclTQR.dcu, qrtee.dcu, qrteereg.dcu, TeeQR.res TeeQR55.bpl and DclTQR55.bpl files. Then and only after you're 100% sure you removed all old TQRChart files, proceed with next steps.
4) Open Delphi 5.
5) Next, close all projects. Then go to the "File->Open project" menu and pick the the TeeQR55.dpk package.
6) For Quick Report 4, you'll have to remove the reference to old Quick Report v3 package and replace it with new runtime package. For Delphi 5, you should remove the qrpt50.dcp (or similar, depending which QR version you previously used) file and replace it with QR4RunD5.dcp package. Also, set the package build option to "Rebuild as needed".
7) Now click the "Compile" button. The package should compile fine. If you receive errors, see "TroubleShooting" below.
Open ("File->Open project" menu) the DclTQR55.dpk package.
9) Now click the "Compile" button. The package should compile fine. If you receive errors, see "TroubleShooting" below.
10) Copy the compiled packages (most probably they were compiled to Delphi5\Projects\BPL directory):
- TeeQR55.bpl to Windows\System (or WinNT\System32) directory
- DclTQR55.bpl to Delphi5\Bin directory
- TeeQR55.dcp to Delphi5\Lib directory
- DclTQR55.dcp to Delphi5\Lib directory
- QRTeeReg.dcu, QRTee.dcu to Delphi5\Lib directory
- all *.res files to Delphi5\Lib directory
11) Go to the "Component->Install packages" press the "Add" button and pick the DclTQR55.bpl package (located in Delphi5\Bin directory - if you followed previous steps. This should install the QRChart component at QReport component palette.
12) Remember to check the "Project->Options->Packages" dialog. The new package name should be listed at the bottom edit-box.
13) IMPORTANT: Don't forget to copy all newly recompiled *.dcu files (from the directory where you keep the files TeeQR55.dpk and DclTQR55.dpk) to Delphi5\Lib directory.
TroubleShooting:
-------------------
(missing files) When Delphi compiles this package, they try to find the TeeChart Pro 5 and QuickReport units, either in source code (*.pas) or compiled (*.dcu, *.obj, *.lib and *.bpi) format.
(wrong path) Check you have the correct paths to all units at "Environment -> Options" dialogs.