Access violation in inherited reports
Hi!
Is there any known issue, which results in Access Violation when saving
report placed on form derived TForm?
I am using RB6.3, D6 upd2, W2k. It happens not only on this box.
In fact I have whole chain of inheritance like this:
TForm ->
TDocBase (contains TReport component and provides basic functionality) ->
TInvoiceBase (adds some invoice-specific elements and functionality) ->
TStockInvoice (implements specific invoice type)
In addition, the report contains multiple subreports, regions etc.
When I open report editor with TStockInvoice, try to change something and
then save - it gives AV.
Is there in RB any other good way, besides class hierarchy, to handle
complexity? The app is going to have MANY reports, which have some
similarities and some differences and I would hate to rewrite the code over
and over.
Appreciate any feedback
Regards,
Irek Rybark
Siemens Hearing Instruments Inc.
Is there any known issue, which results in Access Violation when saving
report placed on form derived TForm?
I am using RB6.3, D6 upd2, W2k. It happens not only on this box.
In fact I have whole chain of inheritance like this:
TForm ->
TDocBase (contains TReport component and provides basic functionality) ->
TInvoiceBase (adds some invoice-specific elements and functionality) ->
TStockInvoice (implements specific invoice type)
In addition, the report contains multiple subreports, regions etc.
When I open report editor with TStockInvoice, try to change something and
then save - it gives AV.
Is there in RB any other good way, besides class hierarchy, to handle
complexity? The app is going to have MANY reports, which have some
similarities and some differences and I would hate to rewrite the code over
and over.
Appreciate any feedback
Regards,
Irek Rybark
Siemens Hearing Instruments Inc.
This discussion has been closed.
Comments
Try loading the subreports dynamically instead of using inheritence. This
way you can take the class hierarchy out of report generation and load the
reports directly. For example you will create a single template which will
be the common header template for all report headers. An example of
dynamically loading subreports is available by following the link below.
This is an end-user demo included with RB Pro or higher. If you have RB
Standard, please follow the link below.
http://www.digital-metaphors.com/tips/DynamicallyLoadedSubreportForHeader.zi
p
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com