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

Form Inheritance with RB

edited September 2005 in General
Hi All,

RB v7.04 and D7.

I'm having problems with some reports on a customer's computers and am
wondering if my methods may be causing report builder some problems.
I've created a base report with standard header information. I then
use form inheritance within Delphi to create a custom base report with
rudimentary detail. Lastly, I inherit this custom report base to
create my final report.

Is there any reason that 3 levels of form inheritance would cause RB
to fail? I'm getting Invalid Variant errors and can't find the cause.

Thanks,
Steve

Comments

  • edited September 2005
    On Tue, 13 Sep 2005 18:31:29 -0400, Steve Harp
  • edited September 2005
    Hi Steve,

    Usually an Invalid Variant error indicates that you have a TppVariable on
    your report and are assigning it the wrong datatype. Check to see that the
    DataType for every Variable on your report matches the datatype of the value
    you are assigning.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2005
    On Wed, 14 Sep 2005 08:09:23 -0600, "Nico Cizik \(Digital Metaphors\)"
  • edited September 2005
    Hi Steve,

    Try to isolate where the problem is occuring. If you remove the
    TppSystemVariable from your report do you get the error? How about if you
    remove the TppRegions? If you set your debugger to stop on exceptions,
    where in the RB code does the exception occur?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2005
    On Wed, 14 Sep 2005 09:42:23 -0600, "Nico Cizik \(Digital Metaphors\)"
  • edited September 2005
    Hi Steve,

    Try to find the differences between your setup and your customer's setup and
    see if you can create that environment on your computer. One thing to now
    about form inheritance is that you should not place any datapipelines on the
    ancestor form. This causes big problems with the AutoCreateFields feature.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.