Save and Load Reports with Inheritance
I have BaseReport form, with basic report title and bands set up, Print
and Preview buttons. Then all my actual reports are on inherited forms
from that base form. They all use ppReport1.
This all works fine, but then I thought some reports take a lot of
design work and are so similar to others, I tried to Save a report as an
Rtm file, worked fine. But for a new form, it will not load the Rtm file
into Report1 because of the inherited Report1. I CAN put a brand new
Report2 on my new report form, and load the save rtm into that. However,
i still hsave a nbit of a mess due to using inheritance in the original rtm.
Question - is the best idea to decide which is more important?
Inheriting from a base form, OR forget that altogether, so no
inheritance and free to copy reports to various forms and modify them?
Scott S.
and Preview buttons. Then all my actual reports are on inherited forms
from that base form. They all use ppReport1.
This all works fine, but then I thought some reports take a lot of
design work and are so similar to others, I tried to Save a report as an
Rtm file, worked fine. But for a new form, it will not load the Rtm file
into Report1 because of the inherited Report1. I CAN put a brand new
Report2 on my new report form, and load the save rtm into that. However,
i still hsave a nbit of a mess due to using inheritance in the original rtm.
Question - is the best idea to decide which is more important?
Inheriting from a base form, OR forget that altogether, so no
inheritance and free to copy reports to various forms and modify them?
Scott S.
This discussion has been closed.
Comments
You are correct, for the reasons you have discovered, form inheritance
and report templates (.rtm) do not function properly together. You will
need to either use one or the other.
One option is to use Subreports and report templates to give the same
effect of form inheritance without actually using it. This way you can
keep your basic bands for each report and still load templates when you
need.
See the following article on how this can be done (ignore option 1).
http://www.digital-metaphors.com/rbWiki/Design/Layout/How_To...Standard_Header_Footer
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com