Form Inheritance with RB
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com