我從Rave Report 官方網站的新聞組搜到的:
============================================================================
***Dynamic Databand height***
============================================================================
I've read all of the newsgroup articles, and it appears that there is no way
with the existing codebase to purposely dynamically alter the height of a
databand at runtime. In my case, I have 3-line records. This report is
being printed on a form, so the height is critical to ensure that subsequent
records still fill the proper spots. In the case where a flag in my record
is set, I need to print supplemental data in the next 3-line section.
Sometimes I'll need to print the supplemental data, sometimes not. I can't
afford to have blank 3-line gaps on my form - this is for the gov't, and
they just won't take it.
I guess my question is, why can't we dynamically change the height of a
databand? Apparently, it must be possible, since youdo
it with DataMemos.
How difficult would it be to make a datamirror expand the databand as well?
I'd like to have a datamirror with two mirrors, one a 3-line, and one a
6-line (the 3-line + supplemental). If I was only using the 3-line, then
the databand would print as normal. If I was printing the 6-line, then
it
would expand the databand to fit the larger size (for that record only).
My guess is that Nevrona already has the logic for this in the DataMemo.
Can you not expose a ExpandParent property in the DataMirror too?
Thanks.
===============================================================================
Hello John
The Data mirror already works this way, however you will need to define what
you need in a single data mirror rather than trying to append them together.
For example, one common use is to optionally print a band, by including the
band height to 0, and including a data mirror component.
I suggest that you create 2 mirrored sections, one with 3 lines and the
other with 6 lines. RAVE should then
be able to automatically expand the
data bands for you.
HTH
Regards
Trevor Keegan
==============================================================================
Trevor, that is fantastic news. Is this behaviordo
cumented?
I'lldo
some trials with it, using the technique you suggested.
Thanks so much for the help.
==============================================================================
Hello John,
Always good to see a man happy
==============================================================================