Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TeeChart Upgrade woes

edited August 2007 in General
Sirs

This is self inflicted and I appologise in advance but I would appreciate
assistance and advice on a problem I have caused to a previously working
environment...

Env = Delphi 6.0 Updates 2 and rtl update 3
Report Builder 9.03 Server

I upgraded my copy of TeeChart Pro from 7.06 to 7.12. TeeChart was
installed (using the TeeChart re compile program) and working OK

I re built the Tee700 dpk's and copied all the files to the required
locations as per the instructions in the rbuilder.hlp file

If I droped a report component onto a blank form, I can see the TeeChart
Components in the report designer and I can edit the chart etc. as would be
expected

If I put a ppChrtUI into the uses and then compile the application I get the
following error

[Fatal Error] OpeningDM.pas(17): Unit ppChrtUI was compiled with a different
version of Chart.TCustomChart.CalcClickedPart.

I uninstalled TeeChart 7.12 and re installed 7.06.

I followed the above procedure from rbuilder.hlp and copied the required
files etc.

However I still get the Fatal Error message even though I have (I believe)
restored the system to all its previous settings and files.

Advice greatfully appreciated.

Philip L Jackson

Comments

  • edited August 2007
    Philip:

    I've had that problem and founds a different solution.

    I never put a TppChart in my reports. I get the images from the charts in my
    application (GUI). Even when the chart doesn't show in my application, I
    create it and grab the image from code, rather then get stuck with the
    versioning problems you are seeing.

    It's been a while since I've posted code snippets--let me know if you are
    interested and I will post them again.

    Edward Dressel
    DX Squad




  • edited August 2007
    Hi Philip,

    If you are using Delphi 6 with rtl update 3, you should be able to use
    TeeChart 7.12 however this is not something we recommend because update 3
    has been known to cause problems with ReportBuilder in the past.

    It seems you are still using an older .dcu or runtime package somewhere in
    your system. First try setting your library path to \RBuilder\Source rather
    than \Lib and see if that fixes the problem. If not, you may need to
    perform a complete uninstall and reinstall of ReportBuilder and TeeChart.
    See the article below on cleaning up a corrupt install.

    --------------------------------------------
    Article: Cleaning up a Corrupt Installation
    --------------------------------------------

    If you have been advised by Digital Metaphors technical support that you may
    have a corrupt installation, or if you are having difficulty installing,
    compiling or running applications after a ReportBuilder install, then it may
    be necessary to manually remove all ReportBuilder files from your system.
    Corrupt installations usually result when you are installing over a previous
    version of ReportBuilder which was not installed into the default directory,
    which was recompiled from the source, or when ReportBuilder files were
    manually moved from the default install location. Cleaning up a corrupt
    installation, consists of locating all ReportBuilder related files, and
    deleting them from your system. The first step is to use the uninstall
    program to remove as much of ReportBuilder as possible.


    Run the uninstall program

    1. Exit Delphi, and all other applications. You should have no applications
    running except the uninstall, otherwise you may lose some of your work.

    2. Select Start | Settings | Control Panel from your Windows desktop.

    3. Double-click the Add/Remove programs icon.

    4. Locate the version of ReportBuilder you wish uninstall and double-click
    it.

    5. The first page of the Uninstall Wizard allows you to choose between an
    Automatic or Custom uninstall. Choose Custom and click the Next button.

    6. Click the Select All button, then the Next button. Repeat these steps
    until you reach the last page of the wizard.

    7. Click the Finish button. All of the items you selected will be removed
    from the system.

    8. After all the ReportBuilder files are removed, you may be prompted to
    reboot the system. If this is the case, reboot the system.


    Delete the ReportBuilder root directory (and all subdirectories)

    1. Using the Windows Explorer, locate the ReportBuilder root directory. The
    default directory is:

    C:\Program Files\Borland\DelphiX\RBuilder

    2. Once you have located this directory, inspect it. If you have any custom
    work in this directory which you would like to keep, move it to another
    directory.

    3. Delete the ReportBuilder root directory.


    Delete all remaining ReportBuilder files

    1. Using the Windows Explorer, search the entire hard drive for all
    occurrences of:

    dclRB*.bpl
    dclRB*.dcp
    rb*.bpl
    rb*.dcp

    2. Delete any occurrences which correspond to the version you are removing.
    All packages are named with the convention NN, where the first number
    is the ReportBuilder version and the second number is the Delphi version.
    Thus, a typical package name for Delphi 5 would be rbRCL45.bpl. The same
    package for Delphi 4 would be: rbRCL44.bpl. Check Installing ReportBuilder
    for a list of the packages associated with each version.

    3. Using the Windows Explorer, search your hard drive for all occurrences
    of:

    pp*.*
    da*.*
    ra*.*

    4. These are the prefixes used by individual ReportBuilder units. 'pp' is
    used for ReportBuilder units, 'da' is used for DADE units, and 'ra' is used
    for RAP units. Depending on which ReportBuilder you have (Standard,
    Professional or Enterprise) you may not have all of these unit types.



    Additional Notes

    1. Never have Delphi running when installing ReportBuilder.

    2. All ReportBuilder related files should be stored in the root directory
    $(DELPHI)\RBuilder.

    3. All ReportBuilder run-time packages should be stored in the
    Windows\System directory.

    4. You should never have ReportBuilder files in Delphi\Lib, Delphi\Bin or
    Delphi\Projects\Bpl.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2007
    Hi Edward

    Thanks for the offer but the suggestion below has worked.

    Regards

    PLJ
  • edited August 2007
    Hi Nico

    Thanks - worked a treat.

    Regards

    PLJ

This discussion has been closed.