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

RB 10.01 - TMyChkBox not found ....

edited February 2006 in General
Hi,

I've just upgraded to RB 10.01 Std. When I open a form with a Report I
get the message TMyChkBox not found.

Can anyone help.

Many thanks

Andy

p.s. I'm using D2006.

Comments

  • edited February 2006
    Hi Andy,

    This error indicates that for some reason the dclRBU1010.bpl package was not
    installed into your IDE when RB was installed. Check the Installed Packages
    list in Delphi to be sure the "ReportBuilder Sample Components" entry is
    checked. If this entry is not present, try manually adding the
    dclRBU1010.bpl to the list. The package should be located in the
    \RBuilder\Lib\... directory.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Nico,

    I still keep getting the same error. I've checked the package and it is
    installed. I also get the following when I do a build all, could this
    be the problem?

    [Pascal Warning] ppDisplayFormat.pas(142): W1035 Return value of
    function 'TppDisplayFormat.Format' might be undefined


  • edited March 2006
    Hi Andrew,

    Are you receiving this error at designtime or at runtime? Check your
    library path to be sure the MyChkBox.dcu is present. If not, try changing
    your path to \RBuilder\Source and see if that fixes the issue. I will check
    into the RB Standard for D2006 installation files to be sure the proper
    files are being included.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Nico,

    My paths are set as follows and MyChkBox is included in the modules uses
    clause. The problem occurs whenever I do a build all or try to save the
    datamodule the reports are on, but only after I've edited the reports.
    When I do I get the message 'RMod.mycheckbox1 (through 6) does not have
    a corresponding component. Remove declaration (Yes/No/Cancel)'. I
    choose not to remove the declaration and then the build works OK.

    C:\Program Files\Borland\BDS\4.0\RBuilder\Source
    $(BDS)\RBuilder\Lib

    Many thanks

    Andy



  • edited March 2006
    Hi Andy,

    You should not have both the Source and Lib directories in you library path
    at once. One or the other should be sufficient. Please provide me with the
    steps you are taking to recreate this behavior. Below are the steps I have
    taken with a new install of RB 10.01 with Delphi 2006.

    1. Make sure the MyChkBox*.dcu files are present in the \RBuilder\Lib
    directory.
    2. Load Delphi 2006
    3. Start a new VCL forms application and add a button to the form.
    4. Create a new Data Module and add a report.
    5. Add a CheckBox and DBCheckBox to the report design.
    6. Call DataModule.Report.Print from the button's onclick event.
    7. Run the application.
    8. Save and close the entire project.
    9. Reload and run the application again.

    This all works without problem on my machine. The error you are receiving
    indicates that something has been removed perhaps from the interface of the
    datamodule, and not from the report design.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Nico Cizik (Digital Metaphors) wrote:

    I'm getting the same thing, Nico. I noticed that the checkbox components do
    not exist in the RB designer.

    I tried both the lib and source options that you mentioned below. MyChkBox.dcu
    was in the lib folder, MyChkBox.pas was in the Source folder.

    I tried looking at the User Components packages that is in the Demos\3. RCL
    directory and there are several errors in each of the package source files
    that prevent it from being edited. Opening each package gave an error similar
    to the following:

    "Cannot find project MainSource file,
    c:\Borland\BDS\4.0\RBuilder\3.RCL\dclRBU910.dpk"

    I have RB1010 Standard, BTW.

    I did all this after a clean removal of the old RBuilder version and reinstall.


    HTH

    Bill
  • edited March 2006
    Nico,

    I can't add a Checkbox or DBcheckbox as they do not appear on my RB
    component pallet!!

    Regards

    Andy


  • edited March 2006
    Hi Bill,

    Are you able to see the checkbox components at designtime? If not, check
    the Component | Installed Packages... dialog in the Delphi IDE for the
    ReportBuilder Sample Components entry and be sure it is checked. If you
    would like to be able to design checkboxes at runtime, you will need to be
    sure to add myChkBoxDesign to your uses clause.


    This error is due to the dclRBU1010.bdsproj file referencing the wrong file.
    If you open each .bdsproj file in notepad you will see it is referencing the
    dclRBU910.dpk file rather than the dclRBU1010.dpk file. Changing this
    manually will solve the problem. I will fix this for the next maintenance
    release.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Hi Andrew,

    See my latest reply to Bill Mogk on this thread.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2006
    Nico Cizik (Digital Metaphors) wrote:

    The sample components package was installed, but the checkboxes did not show
    in the RB Designer.

    I did as above, then, uninstalled the RB Sample Components, and built and
    installed the dclRBU1010 package in the RCL\Demos directory, and it seems to
    fix everything - the checkbox components now show in the designer pallete.

    Bill
  • edited March 2006
    Andrew Norman wrote:
    Andrew, Look at my message above to Nico. This should get you going, I think.

    HTH

    Bill
  • edited March 2006
    Nico and Bill,

    I've managed to get it up and running, many thanks for your help.

    Andy

This discussion has been closed.