Shrinking regions when contents empty
I have a number of regions in my report, some nested, with TppDBText and
TppDbMemo components inside them. Each region has to have sufficient height
to contain the components and is set to stretch to match the memo's within
it. This is fine, but sometimes these components are empty. In that
situation I need the region to shrink, otherwise I get blank spaces in my
report.
Is there any way I can shrink regions when some of the the components they
contain are empty?? Or perhaps it is a matter of being able to "place"
components within a region without the region having much height?
Sarah
TppDbMemo components inside them. Each region has to have sufficient height
to contain the components and is set to stretch to match the memo's within
it. This is fine, but sometimes these components are empty. In that
situation I need the region to shrink, otherwise I get blank spaces in my
report.
Is there any way I can shrink regions when some of the the components they
contain are empty?? Or perhaps it is a matter of being able to "place"
components within a region without the region having much height?
Sarah
This discussion has been closed.
Comments
I have done with what I thought was nesting? Will have a look at that!
Anyway, my shriking a region question still stands.
dbDemos biolife table with an empty memo record to connect test with. If you
launch the designer and load the supplied report template it will run off of
the data access components on the form.
http://www.digital-metaphors.com/tips/AutoHideRegion.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
things I'm missing to for looking at this. So Can't try the demo (
But I will have a look at the code to see if I can get the idea.
Sarah
ran it with my D5 RB Pro 6.03 install. Take out the raIDE, and raCodMod
from the uses clause. 'Ignore' the property not found errors. You should
be able to load the AutoHideRegion.rtm template in the zip file add see that
the region is not shown when the memo inside of it is empty- you should see
that all of the details have memos inside of them and that none of them are
blank. You can create add a regular memo in this report to see the
difference.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
the HideWhenMemoEmpty property to see the skipped records.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com