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

Class not registered Error

edited January 2002 in General
Hi,

I have changed PrinterSetup.PrinterName to 'Screen'. The 'Canvas does not
allowed' problem is gone. However, in one of our WINNT Workstations, a new
error 'Class not registered" occur while invoking the report designer. And I
have checked that the WINNT Workstation has default printer. What's going
wrong?


Cheers,
Danny.

Comments

  • edited January 2002
    Follow the corrupt installation cleanup on that machine, perhaps it is using
    an older RB files:


    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.



    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002
    Hi,

    Actually, we use the report builder BPLs in our deployment. And we have no
    report builder installed previously.

    Cheers,
    Danny.

  • edited January 2002
    Is there a missing bpl? Here is a list of the packages...

    ReportBuilder 6 and Delphi 6 package names shown below:

    rbRCL66 Report Components
    rbIDE66 Report Designer and supporting dialogs
    rbDB66 Adds TDataset support for pipelines
    rbCIDE66 Crosstab visual interface
    rbCT66 Crosstab engine
    rbRIDE66 RAP visual interface
    rbRAP66 RAP code engine
    rbDBDE66 BDE support for Data Access Development Environment
    rbDAD66 DADE SQL generator
    rbDIDE66 DADE visual interface
    rbBDE66 BDE data access components
    rbUSER66 Sample report components (checkbox)
    rbTDBC66 Data-aware TeeChart wrapper


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002
    Also check to make sure that the uses clause includes the proper units, such
    as the necessary DADE plugin, or the Checkbox component, when a template is
    loaded. If the template is being loaded, and the template contains an
    object definition, and its class can't be found, then you could get this
    error.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.